Lines Matching refs:basicComponent
47 public static final BasicComponent basicComponent = DaggerBasicComponent.create(); field in BasicTest
52 @Theory public void primitives(BasicComponent basicComponent) { in primitives() argument
53 assertThat(basicComponent.getByte()).isEqualTo(BOUND_BYTE); in primitives()
54 assertThat(basicComponent.getChar()).isEqualTo(BOUND_CHAR); in primitives()
55 assertThat(basicComponent.getShort()).isEqualTo(BOUND_SHORT); in primitives()
56 assertThat(basicComponent.getInt()).isEqualTo(BOUND_INT); in primitives()
57 assertThat(basicComponent.getLong()).isEqualTo(BOUND_LONG); in primitives()
58 assertThat(basicComponent.getBoolean()).isEqualTo(BOUND_BOOLEAN); in primitives()
59 assertThat(basicComponent.getFloat()).isEqualTo(BOUND_FLOAT); in primitives()
60 assertThat(basicComponent.getDouble()).isEqualTo(BOUND_DOUBLE); in primitives()
63 @Theory public void boxedPrimitives(BasicComponent basicComponent) { in boxedPrimitives() argument
64 assertThat(basicComponent.getBoxedByte()).isEqualTo(new Byte(BOUND_BYTE)); in boxedPrimitives()
65 assertThat(basicComponent.getBoxedChar()).isEqualTo(new Character(BOUND_CHAR)); in boxedPrimitives()
66 assertThat(basicComponent.getBoxedShort()).isEqualTo(new Short(BOUND_SHORT)); in boxedPrimitives()
67 assertThat(basicComponent.getBoxedInt()).isEqualTo(new Integer(BOUND_INT)); in boxedPrimitives()
68 assertThat(basicComponent.getBoxedLong()).isEqualTo(new Long(BOUND_LONG)); in boxedPrimitives()
69 assertThat(basicComponent.getBoxedBoolean()).isEqualTo(new Boolean(BOUND_BOOLEAN)); in boxedPrimitives()
70 assertThat(basicComponent.getBoxedFloat()).isEqualTo(BOUND_FLOAT); in boxedPrimitives()
71 assertThat(basicComponent.getBoxedDouble()).isEqualTo(BOUND_DOUBLE); in boxedPrimitives()
74 @Theory public void boxedPrimitiveProviders(BasicComponent basicComponent) { in boxedPrimitiveProviders() argument
75 assertThat(basicComponent.getByteProvider().get()).isEqualTo(new Byte(BOUND_BYTE)); in boxedPrimitiveProviders()
76 assertThat(basicComponent.getCharProvider().get()).isEqualTo(new Character(BOUND_CHAR)); in boxedPrimitiveProviders()
77 assertThat(basicComponent.getShortProvider().get()).isEqualTo(new Short(BOUND_SHORT)); in boxedPrimitiveProviders()
78 assertThat(basicComponent.getIntProvider().get()).isEqualTo(new Integer(BOUND_INT)); in boxedPrimitiveProviders()
79 assertThat(basicComponent.getLongProvider().get()).isEqualTo(new Long(BOUND_LONG)); in boxedPrimitiveProviders()
80 assertThat(basicComponent.getBooleanProvider().get()).isEqualTo(new Boolean(BOUND_BOOLEAN)); in boxedPrimitiveProviders()
81 assertThat(basicComponent.getFloatProvider().get()).isEqualTo(BOUND_FLOAT); in boxedPrimitiveProviders()
82 assertThat(basicComponent.getDoubleProvider().get()).isEqualTo(BOUND_DOUBLE); in boxedPrimitiveProviders()
85 @Theory public void primitiveArrays(BasicComponent basicComponent) { in primitiveArrays() argument
86 assertThat(basicComponent.getByteArray()).isSameInstanceAs(BOUND_BYTE_ARRAY); in primitiveArrays()
87 assertThat(basicComponent.getCharArray()).isSameInstanceAs(BOUND_CHAR_ARRAY); in primitiveArrays()
88 assertThat(basicComponent.getShortArray()).isSameInstanceAs(BOUND_SHORT_ARRAY); in primitiveArrays()
89 assertThat(basicComponent.getIntArray()).isSameInstanceAs(BOUND_INT_ARRAY); in primitiveArrays()
90 assertThat(basicComponent.getLongArray()).isSameInstanceAs(BOUND_LONG_ARRAY); in primitiveArrays()
91 assertThat(basicComponent.getBooleanArray()).isSameInstanceAs(BOUND_BOOLEAN_ARRAY); in primitiveArrays()
92 assertThat(basicComponent.getFloatArray()).isSameInstanceAs(BOUND_FLOAT_ARRAY); in primitiveArrays()
93 assertThat(basicComponent.getDoubleArray()).isSameInstanceAs(BOUND_DOUBLE_ARRAY); in primitiveArrays()
96 @Theory public void primitiveArrayProviders(BasicComponent basicComponent) { in primitiveArrayProviders() argument
97 assertThat(basicComponent.getByteArrayProvider().get()).isSameInstanceAs(BOUND_BYTE_ARRAY); in primitiveArrayProviders()
98 assertThat(basicComponent.getCharArrayProvider().get()).isSameInstanceAs(BOUND_CHAR_ARRAY); in primitiveArrayProviders()
99 assertThat(basicComponent.getShortArrayProvider().get()).isSameInstanceAs(BOUND_SHORT_ARRAY); in primitiveArrayProviders()
100 assertThat(basicComponent.getIntArrayProvider().get()).isSameInstanceAs(BOUND_INT_ARRAY); in primitiveArrayProviders()
101 assertThat(basicComponent.getLongArrayProvider().get()).isSameInstanceAs(BOUND_LONG_ARRAY); in primitiveArrayProviders()
102 assertThat(basicComponent.getBooleanArrayProvider().get()) in primitiveArrayProviders()
104 assertThat(basicComponent.getFloatArrayProvider().get()).isSameInstanceAs(BOUND_FLOAT_ARRAY); in primitiveArrayProviders()
105 assertThat(basicComponent.getDoubleArrayProvider().get()).isSameInstanceAs(BOUND_DOUBLE_ARRAY); in primitiveArrayProviders()
108 @Theory public void noOpMembersInjection(BasicComponent basicComponent) { in noOpMembersInjection() argument
110 assertThat(basicComponent.noOpMembersInjection(object)).isSameInstanceAs(object); in noOpMembersInjection()
113 @Theory public void basicObject_noDeps(BasicComponent basicComponent) { in basicObject_noDeps() argument
114 assertThat(basicComponent.thing()).isNotNull(); in basicObject_noDeps()
117 @Theory public void inheritedMembersInjection(BasicComponent basicComponent) { in inheritedMembersInjection() argument
118 assertThat(basicComponent.typeWithInheritedMembersInjection().thing).isNotNull(); in inheritedMembersInjection()
122 public void nullableInjection(BasicComponent basicComponent) { in nullableInjection() argument
123 assertThat(basicComponent.nullObject()).isNull(); in nullableInjection()
124 assertThat(basicComponent.nullObjectProvider().get()).isNull(); in nullableInjection()
125 assertThat(basicComponent.lazyNullObject().get()).isNull(); in nullableInjection()
129 public void providerOfLazy(BasicComponent basicComponent) { in providerOfLazy() argument
131 basicComponent.lazyInjectedThingProvider(); in providerOfLazy()