- Sort Score
- Result 10 results
- Languages All
Results 571 - 580 of 1,205 for Exceptions (0.06 sec)
-
CountingInputStreamTest.java
tests for {@link CountingInputStream}. L28: * L29: * @author Chris Nokleberg L30: */ L31:public class CountingInputStreamTest extends IoTestCase { L32: private CountingInputStream counter; L33: L34: @Override L35: protected void setUp() throws Exception { L36: super.setUp(); L37: counter = new CountingInputStream(new ByteArrayInputStream(new byte[20])); L38: } L39: L40: public void testReadSingleByte() throws IOException { L41: assertEquals(0, counter.getCount()); L42: assertEquals(0,...github.com/google/guava/android/guava-tests/tes...Wed Sep 06 17:04:31 UTC 2023 3.5K bytes -
FessApiAdminAction.java
License. L15: */ L16:package org.codelibs.fess.app.web.api.admin; L17: L18:import org.apache.logging.log4j.LogManager; L19:import org.apache.logging.log4j.Logger; L20:import org.codelibs.fess.app.web.api.FessApiAction; L21:import org.codelibs.fess.exception.InvalidAccessTokenException; L22: L23:public abstract class FessApiAdminAction extends FessApiAction { L24: L25: private static final Logger logger = LogManager.getLogger(FessApiAdminAction.class); L26: L27: @Override L28: protected boolean...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:37:57 UTC 2024 1.4K bytes -
ConflictingRequirementsException.java
java.util.Set; L21: L22:/** L23: * Thrown when requirements on a tester method or class conflict with each other. L24: * L25: * @author George van den Driessche L26: */ L27:@GwtCompatible L28:public class ConflictingRequirementsException extends Exception { L29: private Set<Feature<?>> conflicts; L30: private Object source; L31: L32: public ConflictingRequirementsException( L33: String message, Set<Feature<?>> conflicts, Object source) { L34: super(message); L35: this.conflicts = conflicts;...github.com/google/guava/guava-testlib/src/com/g...Mon Dec 04 17:37:03 UTC 2017 1.4K bytes -
BeanMap.java
express or implied. See the License for the specific language L14: * governing permissions and limitations under the License. L15: */ L16:package org.codelibs.core.beans.util; L17: L18:import java.util.LinkedHashMap; L19: L20:import org.codelibs.core.exception.IllegalKeyOfBeanMapException; L21: L22:/** L23: * Stringがキーで、存在しないキーにアクセスする(get)と例外を投げるマップです。 L24: * L25: * @author higa L26: */ L27:public class BeanMap extends LinkedHashMap<String, Object> { L28: L29: private static final long serialVersionUID...github.com/codelibs/corelib/src/main/java/org/c...Thu Mar 07 01:59:08 UTC 2024 1.2K bytes -
AtomicDoubleTest.java
prev, x)); L96: assertBitEquals(x, at.get()); L97: prev = x; L98: } L99: } L100: L101: /** compareAndSet in one thread enables another waiting for value to succeed */ L102: public void testCompareAndSetInMultipleThreads() throws Exception { L103: final AtomicDouble at = new AtomicDouble(1.0); L104: Thread t = L105: newStartedThread( L106: new CheckedRunnable() { L107: @Override L108: @SuppressWarnings("ThreadPriorityCheck") // doing...github.com/google/guava/guava-tests/test/com/go...Thu Oct 17 02:42:09 UTC 2024 10.3K bytes -
MockFutureListener.java
time, and Asserts that the future L71: * throws an {@code ExecutableException} and that the cause of the {@code ExecutableException} is L72: * {@code expectedCause}. L73: */ L74: public void assertException(Throwable expectedCause) throws Exception { L75: // Verify that the listener executed in a reasonable amount of time. L76: Assert.assertTrue(countDownLatch.await(1L, SECONDS)); L77: L78: try { L79: future.get(); L80: Assert.fail("This call was supposed to throw an ExecutionException");...github.com/google/guava/android/guava-testlib/s...Fri May 12 18:12:42 UTC 2023 3K bytes -
UnsignedBytesBenchmark.java
1M, 1M (unaligned), 64M, 64M (unaligned) L41: // @Param({"4", "8", "64", "1024", "1048576", "1048577", "6710884", "6710883"}) L42: @Param({"4", "8", "64", "1024"}) L43: private int length; L44: L45: @BeforeExperiment L46: void setUp() throws Exception { L47: Random r = new Random(); L48: ba1 = new byte[length]; L49: r.nextBytes(ba1); L50: ba2 = Arrays.copyOf(ba1, ba1.length); L51: // Differ at the last element L52: ba3 = Arrays.copyOf(ba1, ba1.length); L53: ba4 = Arrays.copyOf(ba1,...github.com/google/guava/android/guava-tests/ben...Mon Dec 04 17:37:03 UTC 2017 2.8K bytes -
TestLogHandler.java
logged by the code under test. Example: L30: * L31: * <pre> L32: * TestLogHandler handler; L33: * L34: * protected void setUp() throws Exception { L35: * super.setUp(); L36: * handler = new TestLogHandler(); L37: * SomeClass.logger.addHandler(handler); L38: * addTearDown(new TearDown() { L39: * public void tearDown() throws Exception { L40: * SomeClass.logger.removeHandler(handler); L41: * } L42: * }); L43: * } L44: * L45: * public void test() { L46:...github.com/google/guava/android/guava-testlib/s...Fri Jun 21 20:53:25 UTC 2024 2.8K bytes -
ProtocolHelper.java
java.util.List; L30:import java.util.jar.JarEntry; L31:import java.util.jar.JarFile; L32: L33:import org.apache.logging.log4j.LogManager; L34:import org.apache.logging.log4j.Logger; L35:import org.codelibs.core.exception.ClassNotFoundRuntimeException; L36:import org.codelibs.core.exception.NoSuchFieldRuntimeException; L37:import org.codelibs.core.lang.ClassUtil; L38:import org.codelibs.core.lang.StringUtil; L39:import org.codelibs.fess.mylasta.direction.FessConfig; L40:import org.codelibs.fess.util.ComponentUtil;...github.com/codelibs/fess/src/main/java/org/code...Wed Jun 19 01:34:15 UTC 2024 7.4K bytes -
ImmutableSortedSet.java
* IllegalArgumentException} if passed a {@code fromElement} smaller than an earlier {@code L661: * fromElement}. However, this method doesn't throw an exception in that situation, but instead L662: * keeps the original {@code fromElement}. Similarly, this method keeps the original {@code L663: * toElement}, instead of throwing an exception, if passed a {@code toElement} greater than an L664: * earlier {@code toElement}. L665: */ L666: @Override L667: public ImmutableSortedSet<E> subSet(E...github.com/google/guava/guava/src/com/google/co...Wed Oct 30 16:15:19 UTC 2024 39.1K bytes