Home
last modified time | relevance | path

Searched refs:singletonList (Results 1 – 25 of 154) sorted by relevance

1234567

/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/internal/analysis/
DBundleCoverageImplTest.java100 assertEquals(Collections.singletonList(ca), p1.getClasses()); in testGroupByPackage()
105 assertEquals(Collections.singletonList(cb), p2.getClasses()); in testGroupByPackage()
106 assertEquals(Collections.singletonList(sb), p2.getSourceFiles()); in testGroupByPackage()
111 assertEquals(Collections.singletonList(sc), p3.getSourceFiles()); in testGroupByPackage()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DSingletonImmutableList.java20 import static java.util.Collections.singletonList;
38 this.delegate = singletonList(checkNotNull(element)); in SingletonImmutableList()
/external/testng/src/test/java/test/testnames/
DTestNamesTest.java17 tng.setTestNames(Collections.singletonList("testGroup2")); in checkWithoutChildSuites()
18 … tng.setTestSuites(Collections.singletonList(getPathToResource("testnames/upstream-suite.xml"))); in checkWithoutChildSuites()
/external/testng/src/test/java/test/asserttests/
DArrayEqualityAssertTest.java144 List<List<int[]>> list = Collections.singletonList(Arrays.asList(new int[]{ 42 })); in arrayDeepInListsAssertEquals()
145 List<List<int[]>> listCopy = Collections.singletonList(Arrays.asList(new int[]{ 42 })); in arrayDeepInListsAssertEquals()
206 List<List<int[]>> iterable = Collections.singletonList(Arrays.asList(new int[]{ 42 })); in arrayDeepInIterablesAssertEquals()
207 List<List<int[]>> iterableCopy = Collections.singletonList(Arrays.asList(new int[]{ 42 })); in arrayDeepInIterablesAssertEquals()
/external/jacoco/org.jacoco.report.test/src/org/jacoco/report/internal/html/table/
DCounterColumnTest.java100 column.init(Collections.singletonList(item), item.getNode()); in testItemTotal()
113 column.init(Collections.singletonList(item), item.getNode()); in testItemMissed()
126 column.init(Collections.singletonList(item), item.getNode()); in testItemCovered()
139 column.init(Collections.singletonList(item), item.getNode()); in testLocale()
152 column.init(Collections.singletonList(item), item.getNode()); in testFooter()
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/x509/tsp/
DTimeStampRespTest.java54 Collections.singletonList(statusString), in testGetEncoded()
92 .singletonList(new AlgorithmIdentifier(sha1)), tSTInfoEncoded, in testGetEncoded()
93 null, null, Collections.singletonList(sigInfo)); in testGetEncoded()
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DListsTest.java22 import static java.util.Collections.singletonList;
235 new IteratorTester<String>(3, UNMODIFIABLE, singletonList("foo"), in testAsList1Small()
553 List<Integer> source = Collections.singletonList(1); in testPartition_badSize()
569 List<Integer> source = Collections.singletonList(1); in testPartition_1_1()
572 assertEquals(Collections.singletonList(1), partitions.get(0)); in testPartition_1_1()
576 List<Integer> source = Collections.singletonList(1); in testPartition_1_2()
579 assertEquals(Collections.singletonList(1), partitions.get(0)); in testPartition_1_2()
586 assertEquals(Collections.singletonList(1), partitions.get(0)); in testPartition_2_1()
587 assertEquals(Collections.singletonList(2), partitions.get(1)); in testPartition_2_1()
DImmutableListTest.java52 assertEquals(Collections.singletonList("a"), list); in testCreation_oneElement()
163 assertEquals(Collections.singletonList(array), list); in testCreation_arrayOfArray()
175 assertEquals(Collections.singletonList("a"), list); in testCopyOf_arrayOfOneElement()
205 assertEquals(Collections.singletonList("a"), list); in testCopyOf_collection_oneElement()
236 assertEquals(Collections.singletonList("a"), list); in testCopyOf_iterator_oneElement()
DIterablesTest.java140 Iterable<String> iterable = Collections.singletonList("foo");
163 Iterable<String> iterable = Collections.singletonList("foo");
400 assertEquals(Collections.singletonList(1), partitions.iterator().next());
523 Iterable<String> singletonList = Collections.singletonList("foo");
524 assertFalse(Iterables.isEmpty(singletonList));
725 Iterable<String> iterable = Collections.singletonList("foo");
763 Iterable<String> iterable = Collections.singletonList("foo");
/external/guava/guava-gwt/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/testers/
DCollectionAddAllTester.java24 import static java.util.Collections.singletonList;
130 List<E> containsNull = singletonList(null); in testAddAll_nullSupported()
143 List<E> containsNull = singletonList(null); in testAddAll_nullUnsupported()
DMapPutAllTester.java24 import static java.util.Collections.singletonList;
56 containsNullKey = singletonList(entry(null, samples.e3.getValue())); in setUp()
57 containsNullValue = singletonList(entry(samples.e3.getKey(), null)); in setUp()
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
DCollectionAddAllTester.java24 import static java.util.Collections.singletonList;
133 List<E> containsNull = singletonList(null); in testAddAll_nullSupported()
146 List<E> containsNull = singletonList(null); in testAddAll_nullUnsupported()
DListAddAllAtIndexTester.java23 import static java.util.Collections.singletonList;
111 List<E> containsNull = singletonList(null); in testAddAllAtIndex_nullSupported()
124 List<E> containsNull = singletonList(null); in testAddAllAtIndex_nullUnsupported()
DMapPutAllTester.java24 import static java.util.Collections.singletonList;
59 containsNullKey = singletonList(entry(null, samples.e3.getValue())); in setUp()
60 containsNullValue = singletonList(entry(samples.e3.getKey(), null)); in setUp()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DCookiesTest.java269 result.put("Cookie", Collections.singletonList("Bar=bar")); in testHeadersSentToCookieHandler()
270 result.put("Cookie2", Collections.singletonList("Baz=baz")); in testHeadersSentToCookieHandler()
271 result.put("Quux", Collections.singletonList("quux")); in testHeadersSentToCookieHandler()
321 result.put("COOKIE", Collections.singletonList("Bar=bar")); in testCookiesSentIgnoresCase()
322 result.put("cooKIE2", Collections.singletonList("Baz=baz")); in testCookiesSentIgnoresCase()
/external/jcommander/src/test/java/com/beust/jcommander/
DDefaultValueTest.java90 this.list = singletonList("defaultValue"); in MyOptsWithDefaultValues()
102 public static final List<String> singletonList(String value) { in singletonList() method in DefaultValueTest
/external/guava/guava-tests/test/com/google/common/collect/
DListsTest.java23 import static java.util.Collections.singletonList;
439 new IteratorTester<String>(3, UNMODIFIABLE, singletonList("foo"), in testAsList1Small()
798 List<Integer> source = Collections.singletonList(1); in testPartition_badSize()
814 List<Integer> source = Collections.singletonList(1); in testPartition_1_1()
817 assertEquals(Collections.singletonList(1), partitions.get(0)); in testPartition_1_1()
821 List<Integer> source = Collections.singletonList(1); in testPartition_1_2()
824 assertEquals(Collections.singletonList(1), partitions.get(0)); in testPartition_1_2()
831 assertEquals(Collections.singletonList(1), partitions.get(0)); in testPartition_2_1()
832 assertEquals(Collections.singletonList(2), partitions.get(1)); in testPartition_2_1()
DIterablesTest.java146 Iterable<String> iterable = Collections.singletonList("foo");
169 Iterable<String> iterable = Collections.singletonList("foo");
201 Iterable<String> iterable = Collections.singletonList("a");
437 assertEquals(Collections.singletonList(1), partitions.iterator().next());
588 Iterable<String> singletonList = Collections.singletonList("foo");
589 assertFalse(Iterables.isEmpty(singletonList));
810 Iterable<String> iterable = Collections.singletonList("foo");
848 Iterable<String> iterable = Collections.singletonList("foo");
/external/autotest/frontend/client/src/autotest/tko/embedded_spreadsheet/
DEmbeddedSpreadsheetPresenter.java50 Collections.singletonList((HeaderField) new SimpleHeaderField(ROW_HEADER));
52 Collections.singletonList((HeaderField) new SimpleHeaderField(COLUMN_HEADER));
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DIteratorTestSuiteBuilder.java35 return Collections.<Class<? extends AbstractTester>>singletonList( in getTesters()
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/apple/
DAbstractAppleMetaDataBox.java26 return Collections.singletonList((Box) appleDataBox); in getBoxes()
44 return (List<T>) Collections.singletonList(appleDataBox); in getBoxes()
/external/dexmaker/src/dx/java/com/android/dx/dex/file/
DHeaderSection.java43 this.list = Collections.singletonList(item); in HeaderSection()
/external/jarjar/src/test/com/tonicsystems/jarjar/
DPackageRemapperTest.java32 remapper = new PackageRemapper(Collections.singletonList(rule), false); in setUp()
/external/mockftpserver/tags/2.0.1/src/main/java/org/mockftpserver/fake/filesystem/
DAbstractFakeFileSystem.java204 return Collections.singletonList(getEntry(path)); in listFiles()
232 return Collections.singletonList(getName(path)); in listNames()
499 return Collections.singletonList(""); in normalizedComponents()
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/filesystem/
DAbstractFakeFileSystem.java205 return Collections.singletonList(getEntry(path)); in listFiles()
233 return Collections.singletonList(getName(path)); in listNames()
508 return Collections.singletonList(""); in normalizedComponents()

1234567