- Sort Score
- Num 10 results
- Language All
Results 71 - 80 of 239 for getHost (0.05 seconds)
-
src/test/java/org/codelibs/core/io/FileUtilTest.java
} /** * Test isPathSafe with safe path * * @throws Exception */ @Test public void testIsPathSafe_SafePath() throws Exception { final Path baseDir = tempFolder.getRoot().toPath(); final Path safePath = baseDir.resolve("subdir/file.txt"); assertTrue("Safe path should be allowed", FileUtil.isPathSafe(safePath, baseDir)); } /**Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat Nov 22 11:21:59 GMT 2025 - 10.3K bytes - Click Count (0) -
src/test/java/org/codelibs/core/collection/SLinkedListTest.java
* @throws Exception */ @Test public void testGetLast() throws Exception { try { list.getLast(); fail(); } catch (final NoSuchElementException ex) { System.out.println(ex); } list.addLast("1"); assertThat(list.getLast(), is("1")); } /** * @throws Exception */ @TestCreated: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 8.3K bytes - Click Count (0) -
cmd/warm-backend-s3.go
func (s3 *warmBackendS3) ToObjectError(err error, params ...string) error { object := "" if len(params) >= 1 { object = params[0] } return ErrorRespToObjectError(err, s3.Bucket, s3.getDest(object)) } func (s3 *warmBackendS3) getDest(object string) string { destObj := object if s3.Prefix != "" { destObj = fmt.Sprintf("%s/%s", s3.Prefix, object) } return destObj }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Jun 08 16:13:30 GMT 2025 - 5.8K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListToArrayTester.java
public void testToArray_noArg() { Object[] actual = getList().toArray(); assertArrayEquals("toArray() order should match list", createOrderedArray(), actual); } @CollectionSize.Require(absent = ZERO) public void testToArray_tooSmall() { Object[] actual = getList().toArray(new Object[0]);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 2.3K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListIndexOfTester.java
@SuppressWarnings("JUnit4ClassUsedInJUnit3") public class ListIndexOfTester<E> extends AbstractListIndexOfTester<E> { @Override protected int find(Object o) { return getList().indexOf(o); } @Override protected String getMethodName() { return "indexOf"; } @CollectionFeature.Require(absent = REJECTS_DUPLICATES_AT_CREATION)Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 2.2K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListListIteratorTester.java
resetCollection(); return getList().listIterator(); } @Override protected void verify(List<E> elements) { expectContents(elements); } }.test(); } public void testListIterator_tooLow() { assertThrows(IndexOutOfBoundsException.class, () -> getList().listIterator(-1)); } public void testListIterator_tooHigh() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 5K bytes - Click Count (0) -
build-tools-internal/src/integTest/java/org/elasticsearch/gradle/internal/SymbolicLinkPreservingTarIT.java
public void before() throws IOException { final Path realFolder = temporaryFolder.getRoot().toPath().resolve("real-folder"); Files.createDirectory(realFolder); Files.createFile(realFolder.resolve("file")); Files.createSymbolicLink(realFolder.resolve("link-to-file"), Paths.get("./file")); final Path linkInFolder = temporaryFolder.getRoot().toPath().resolve("link-in-folder"); Files.createDirectory(linkInFolder);
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 6.6K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListReplaceAllTester.java
@ListFeature.Require(SUPPORTS_SET) public void testReplaceAll() { getList().replaceAll(e -> samples.e3()); expectContents(nCopies(getNumElements(), samples.e3())); } @ListFeature.Require(SUPPORTS_SET) public void testReplaceAll_changesSome() { getList().replaceAll(e -> e.equals(samples.e0()) ? samples.e3() : e); E[] expected = createSamplesArray();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 2.5K bytes - Click Count (0) -
fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/CrawlerTest.java
server1.start(); final CrawlerWebServer server2 = new CrawlerWebServer(0); server2.start(); final String url1 = "http://localhost:" + server1.getPort() + "/"; final String url2 = "http://localhost:" + server2.getPort() + "/"; try { final int maxCount = 10; final int numOfThread = 10; final File file = File.createTempFile("crawler-", "");
Created: Sun Apr 12 03:50:13 GMT 2026 - Last Modified: Thu Jan 15 01:11:43 GMT 2026 - 7.8K bytes - Click Count (0) -
fess-crawler-lasta/src/test/java/org/codelibs/fess/crawler/CrawlerTest.java
server1.start(); final CrawlerWebServer server2 = new CrawlerWebServer(0); server2.start(); final String url1 = "http://localhost:" + server1.getPort() + "/"; final String url2 = "http://localhost:" + server2.getPort() + "/"; try { final int maxCount = 10; final int numOfThread = 10; final File file = File.createTempFile("crawler-", "");
Created: Sun Apr 12 03:50:13 GMT 2026 - Last Modified: Thu Jan 15 01:11:43 GMT 2026 - 13.1K bytes - Click Count (0)