- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for TestInterface (0.32 sec)
-
maven-di/src/test/java/org/apache/maven/di/impl/TypeUtilsTest.java
{ Type type = new Key<TestInterface<? extends Integer, ? extends Integer>>() {}.getType(); Type expected = new Key<TestInterface<Integer, Integer>>() {}.getType(); assertEquals(expected, simplifyType(type)); } { Type type = new Key<TestInterface<Integer, Integer>>() {}.getType(); Type expected = new Key<TestInterface<Integer, Integer>>() {}.getType();
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Fri Feb 09 17:13:31 UTC 2024 - 7K bytes - Viewed (0) -
maven-di/src/test/java/org/apache/maven/di/impl/InjectorImplTest.java
BindInterfaces.TestInterface<String> inst = injector.getInstance(new Key<BindInterfaces.TestInterface<String>>() {}); assertNotNull(inst); } static class BindInterfaces { interface TestInterface<T> { T getObj(); } @Named static class ClassImpl implements TestInterface<String> { @Override
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Fri Feb 09 17:13:31 UTC 2024 - 9.2K bytes - Viewed (0) -
pkg/typemap/map_test.go
typemap.Set[TestInterface[string]](tm, TestStruct{Field: "interface"}) assert.Equal(t, typemap.Get[int](tm), ptr.Of(1)) assert.Equal(t, typemap.Get[int32](tm), ptr.Of(int32(2))) assert.Equal(t, typemap.Get[string](tm), ptr.Of("string")) assert.Equal(t, typemap.Get[*TestStruct](tm), ptr.Of(&TestStruct{Field: "pointer"}))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 16:38:40 UTC 2024 - 1.5K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/ClassIteratorTest.java
assertThat(it.hasNext(), is(not(true))); } /** * @throws Exception */ @Test(expected = ClIllegalArgumentException.class) public void testInterface() throws Exception { new ClassIterator(Iterable.class); }
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 2.1K bytes - Viewed (0) -
src/internal/fmtsort/sort_test.go
for _, test := range sortTests { got := sprint(test.data) if got != test.print { t.Errorf("%s: got %q, want %q", reflect.TypeOf(test.data), got, test.print) } } } func TestInterface(t *testing.T) { // A map containing multiple concrete types should be sorted by type, // then value. However, the relative ordering of types is unspecified, // so test this by checking the presence of sorted subgroups.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 6.9K bytes - Viewed (0)