make GuiceModuleMetadata handle ParameterizedType's correctly #20

This commit is contained in:
Taylor Wicksell
2017-07-26 11:46:18 -07:00
committed by Dave Syer
parent db04553972
commit 5e14e96248
2 changed files with 11 additions and 1 deletions

View File

@@ -16,6 +16,9 @@ package org.springframework.guice.annotation;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import java.util.HashMap;
import java.util.Map;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
@@ -126,5 +129,10 @@ public class GuiceModuleAnnotationTests {
public Service service() {
return new MyService();
}
@Bean
public Map<String,String> someParameterizedType() {
return new HashMap<String,String>();
}
}
}