Home
last modified time | relevance | path

Searched refs:SampleAnnotation (Results 1 – 2 of 2) sorted by relevance

/external/guice/core/test/com/google/inject/spi/
DElementsTest.java160 bindConstant().annotatedWith(SampleAnnotation.class).to("A"); in testBindConstantAnnotations()
168 assertEquals(Key.get(String.class, SampleAnnotation.class), command.getKey()); in testBindConstantAnnotations()
329 assertEquals(Key.get(String.class, SampleAnnotation.class), command.getKey()); in testBindKeysWithAnnotationType()
337 bind(String.class).annotatedWith(SampleAnnotation.class).toInstance("A"); in testBindKeysWithAnnotationType()
338 … bind(new TypeLiteral<String>() {}).annotatedWith(SampleAnnotation.class).toInstance("B"); in testBindKeysWithAnnotationType()
507 bind(Set.class).to(Key.get(TreeSet.class, SampleAnnotation.class)); in testBindToLinkedBinding()
546 assertEquals(Key.get(TreeSet.class, SampleAnnotation.class), in testBindToLinkedBinding()
723 bindScope(SampleAnnotation.class, Scopes.NO_SCOPE); in testBindScope()
729 assertSame(SampleAnnotation.class, command.getAnnotationType()); in testBindScope()
791 = getProvider(Key.get(String.class, SampleAnnotation.class)); in testGetProvider()
[all …]
DElementSourceTest.java49 if (annotationType != null && annotationType.equals(SampleAnnotation.class)) { in testGetCallStack_IntegrationTest()
167 @interface SampleAnnotation { } annotation in ElementSourceTest
172 bind(String.class).annotatedWith(SampleAnnotation.class).toInstance("the value"); in configure()