- Sort Score
- Num 10 results
- Language All
Results 1641 - 1650 of 3,637 for throwIf (0.07 seconds)
-
src/test/java/org/codelibs/core/jar/JarFileUtilTest.java
import java.io.File; import java.net.URL; import junit.framework.TestCase; /** * @author koichik */ public class JarFileUtilTest extends TestCase { /** * @throws Exception */ public void testToJarFilePath() throws Exception { final File f = new File("/Program Files/foo.jar"); final URL url = new URL("jar:" + f.toURI().toURL() + "!/");Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 1.5K bytes - Click Count (0) -
src/test/java/org/codelibs/core/xml/DomUtilTest.java
/** * @throws Exception */ public void testGetContentsAsStream() throws Exception { final String contents = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><foo/>"; assertNotNull("1", DomUtil.getContentsAsStream(contents, "UTF-8")); } /** * @throws Exception */ public void testToString() throws Exception {Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 1.6K bytes - Click Count (0) -
src/test/java/org/codelibs/core/beans/converter/SqlDateConverterTest.java
import static org.junit.Assert.assertThat; import org.junit.Test; /** * @author higa */ public class SqlDateConverterTest { /** * @throws Exception */ @Test public void testGetAsObjectAndGetAsString() throws Exception { final SqlDateConverter converter = new SqlDateConverter("yyyy/MM/dd"); final java.sql.Date result = (java.sql.Date) converter.getAsObject("2008/01/16");Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 1.6K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataResolutionResult.java
} public void initTreeProcessing(PlexusContainer plexus) throws ComponentLookupException { classpathTransformation = plexus.lookup(ClasspathTransformation.class); conflictResolver = plexus.lookup(GraphConflictResolver.class); } // ---------------------------------------------------------------------------- public MetadataGraph getGraph() throws MetadataResolutionException {Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 5.4K bytes - Click Count (0) -
compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManagerTest.java
} @BeforeEach @Override public void setUp() throws Exception { super.setUp(); updateCheckManager = new DefaultUpdateCheckManager( new ConsoleLogger(Logger.LEVEL_DEBUG, "test"), new DefaultTrackingFileManager()); } @Test void testArtifact() throws Exception { ArtifactRepository remoteRepository = remoteRepository();Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Dec 16 13:41:14 GMT 2025 - 9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/CountingInputStreamTest.java
@Override protected void setUp() throws Exception { super.setUp(); counter = new CountingInputStream(new ByteArrayInputStream(new byte[20])); } public void testReadSingleByte() throws IOException { assertEquals(0, counter.getCount()); assertEquals(0, counter.read()); assertEquals(1, counter.getCount()); } public void testReadArray() throws IOException {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 3.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/TestCharSink.java
return byteSink.wasStreamClosed(); } @Override public Writer openStream() throws IOException { // using TestByteSink's output stream to get option behavior, so flush to it on every write return new FilterWriter(new OutputStreamWriter(byteSink.openStream(), UTF_8)) { @Override public void write(int c) throws IOException { super.write(c); flush(); } @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 2.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/FuturesGetDoneTest.java
/** Unit tests for {@link Futures#getDone}. */ @GwtCompatible @NullUnmarked public class FuturesGetDoneTest extends TestCase { public void testSuccessful() throws ExecutionException { assertThat(getDone(immediateFuture("a"))).isEqualTo("a"); } public void testSuccessfulNull() throws ExecutionException { assertThat(getDone(immediateVoidFuture())).isEqualTo(null); } public void testFailed() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 23 01:35:55 GMT 2025 - 2.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/TestCharSink.java
return byteSink.wasStreamClosed(); } @Override public Writer openStream() throws IOException { // using TestByteSink's output stream to get option behavior, so flush to it on every write return new FilterWriter(new OutputStreamWriter(byteSink.openStream(), UTF_8)) { @Override public void write(int c) throws IOException { super.write(c); flush(); } @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 2.1K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbTreeInternal.java
/** * Connects and performs logon to the tree using the specified context * @param tf the CIFS context to use for connection * @throws SmbException if an SMB error occurs during connection */ @Deprecated void connectLogon(CIFSContext tf) throws SmbException; /** * Sends an SMB request and returns the response * @param <T> the response type * @param request the request to sendCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 1.9K bytes - Click Count (0)