Search Options

Results per page
Sort
Preferred Languages
Advance

Results 291 - 300 of 2,660 for 2test (0.87 sec)

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

        public void testAssertArgument() {
            exception.expect(ClIllegalArgumentException.class);
            exception.expectMessage(is("[ECL0009]argument[hoge] is illegal. because hogeだからです。."));
            assertArgument("hoge", false, "hogeだからです。");
        }
    
        /**
         * Test method for
         * {@link org.codelibs.core.misc.AssertionUtil#assertState(boolean, String)} .
         */
        @Test
        public void testAssertState() {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 3K bytes
    - Viewed (0)
  2. cmd/data-usage-cache_test.go

    			want: sizeHistogram{0: 10, 5: 20, 6: 3, 7: 4, 8: 5, 9: 6, 10: 7},
    		},
    	}
    	for i, test := range tests {
    		t.Run(fmt.Sprintf("test-%d", i), func(t *testing.T) {
    			var got sizeHistogram
    			got.mergeV1(test.v)
    			if got != test.want {
    				t.Fatalf("Expected %v but got %v", test.want, got)
    			}
    		})
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sat Jan 13 07:51:08 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/persistent/HandleGuidTest.java

    import static org.junit.jupiter.api.Assertions.assertThrows;
    
    import java.util.UUID;
    
    import org.junit.jupiter.api.Test;
    
    import jcifs.internal.smb2.persistent.HandleGuid;
    
    /**
     * Test class for HandleGuid functionality
     */
    public class HandleGuidTest {
    
        @Test
        public void testHandleGuidGeneration() {
            HandleGuid guid1 = new HandleGuid();
            HandleGuid guid2 = new HandleGuid();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/internal/concurrent/TaskRunnerTest.kt

    import assertk.assertions.isEqualTo
    import assertk.assertions.isSameAs
    import java.util.concurrent.RejectedExecutionException
    import kotlin.test.assertFailsWith
    import okhttp3.TestLogHandler
    import org.junit.jupiter.api.AfterEach
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.extension.RegisterExtension
    
    class TaskRunnerTest {
      private val taskFaker = TaskFaker()
    
      @RegisterExtension @JvmField
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 23K bytes
    - Viewed (0)
  5. src/test/java/jcifs/NetbiosAddressTest.java

        @Test
        void testConstantValues() {
            // Test that constants are properly defined
            assertEquals("*\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000",
                    NbtAddress.ANY_HOSTS_NAME);
            assertEquals("\u0001\u0002__MSBROWSE__\u0002", NbtAddress.MASTER_BROWSER_NAME);
            assertEquals("*SMBSERVER     ", NbtAddress.SMBSERVER_NAME);
    
            // Test node type constants
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/dict/DictionaryExpiredExceptionTest.java

        public void test_constructor() {
            // Test default constructor
            DictionaryExpiredException exception = new DictionaryExpiredException();
            assertNotNull(exception);
            assertNull(exception.getMessage());
            assertNull(exception.getCause());
        }
    
        public void test_instanceOf() {
            // Test that exception is instance of RuntimeException
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/lang/StringUtilTest.java

    import static org.junit.Assert.assertThat;
    import static org.junit.Assert.assertTrue;
    
    import java.lang.reflect.Method;
    
    import org.junit.Test;
    
    /**
     * @author higa
     *
     */
    public class StringUtilTest {
    
        /**
         * @throws Exception
         */
        @Test
        public void testReplace() throws Exception {
            assertEquals("1", "1bc45", StringUtil.replace("12345", "23", "bc"));
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 12K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/ioctl/SrvPipePeekResponseTest.java

        void setUp() {
            response = new SrvPipePeekResponse();
        }
    
        @Test
        @DisplayName("Test successful decode with data")
        void testDecodeWithData() throws SMBProtocolDecodingException {
            // Prepare test data
            byte[] buffer = new byte[24]; // 16 bytes header + 8 bytes data
            int bufferIndex = 0;
    
            // Set up test values
            int namedPipeState = 0x03; // NP_NOWAIT | NP_READMODE_MESSAGE
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/pac/PacLogonInfoTest.java

        }
    
        @Test
        @DisplayName("Test parsing with invalid data size")
        void testInvalidDataSize() {
            byte[] tooSmall = new byte[10];
    
            PACDecodingException exception = assertThrows(PACDecodingException.class, () -> new PacLogonInfo(tooSmall));
    
            assertEquals("Malformed PAC", exception.getMessage());
        }
    
        @Test
        @DisplayName("Test getters return expected values using mocks")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/NtlmChallengeTest.java

    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Nested;
    import org.junit.jupiter.api.Test;
    
    import jcifs.smb1.UniAddress;
    
    /**
     * Unit tests for {@link NtlmChallenge}.
     */
    class NtlmChallengeTest {
    
        @Nested
        @DisplayName("Constructor and Field Tests")
        class ConstructorTests {
    
            @Test
            @DisplayName("Constructor sets fields correctly")
            void testConstructorSetsFields() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6K bytes
    - Viewed (0)
Back to top