Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for assertState (0.16 sec)

  1. src/test/java/org/codelibs/core/misc/AssertionUtilTest.java

        }
    
        /**
         * Test method for
         * {@link org.codelibs.core.misc.AssertionUtil#assertState(boolean, String)} .
         */
        @Test
        public void testAssertState() {
            exception.expect(ClIllegalStateException.class);
            exception.expectMessage(is("hogeだからです。"));
            assertState(false, "hogeだからです。");
        }
    
        /**
         * Test method for
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. pkg/controller/garbagecollector/garbagecollector_test.go

    				processAttemptToDelete(1),
    				assertState(state{
    					graphNodes:             []*node{makeNode(pod1ns1, withOwners(pod2ns2)), makeNode(pod2ns2)},
    					pendingAttemptToDelete: []*node{makeNode(pod1ns1)}, // bad child pod1 queued because it disagreed with observed parent
    				}),
    				// 8,9: handle queued delete of bad child
    				processAttemptToDelete(1),
    				assertState(state{
    					clientActions: []string{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

        manager.addListener(listener, directExecutor());
        assertState(manager, Service.State.NEW, a, b, c, d, e);
        assertThrows(IllegalStateException.class, () -> manager.startAsync().awaitHealthy());
        assertFalse(listener.healthyCalled);
        assertState(manager, Service.State.RUNNING, a, c, e);
        assertEquals(ImmutableSet.of(b, d), listener.failedServices);
        assertState(manager, Service.State.FAILED, b, d);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 02 17:20:27 UTC 2023
    - 23.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

        manager.addListener(listener, directExecutor());
        assertState(manager, Service.State.NEW, a, b, c, d, e);
        assertThrows(IllegalStateException.class, () -> manager.startAsync().awaitHealthy());
        assertFalse(listener.healthyCalled);
        assertState(manager, Service.State.RUNNING, a, c, e);
        assertEquals(ImmutableSet.of(b, d), listener.failedServices);
        assertState(manager, Service.State.FAILED, b, d);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 02 17:20:27 UTC 2023
    - 23.2K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java

    import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotEmpty;
    import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull;
    import static org.codelibs.core.misc.AssertionUtil.assertState;
    
    import java.lang.reflect.Constructor;
    import java.lang.reflect.Field;
    import java.lang.reflect.Method;
    import java.lang.reflect.Type;
    import java.lang.reflect.TypeVariable;
    import java.sql.Time;
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/collection/ArrayMap.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.collection;
    
    import static org.codelibs.core.misc.AssertionUtil.assertIndex;
    import static org.codelibs.core.misc.AssertionUtil.assertState;
    
    import java.io.Externalizable;
    import java.io.IOException;
    import java.io.ObjectInput;
    import java.io.ObjectOutput;
    import java.lang.reflect.Array;
    import java.util.AbstractMap;
    import java.util.AbstractSet;
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/misc/AssertionUtil.java

         *            事前条件
         * @param description
         *            不正な状態であることの説明
         * @throws ClIllegalStateException
         *             {@code expression}がfalseの場合。
         */
        public static void assertState(final boolean expression, final String description) {
            if (!expression) {
                throw new ClIllegalStateException(description);
            }
        }
    
        /**
         * indexが不正でないことを表明します。
         *
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 12.5K bytes
    - Viewed (0)
Back to top