Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for expectedStrings (0.38 sec)

  1. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

                    testBlock.setCommand(commands[i]);
                    String result = testBlock.toString();
                    assertTrue(result.contains("command=" + expectedStrings[i]), "Expected: " + expectedStrings[i] + " in result: " + result);
                }
            }
        }
    
        @Nested
        @DisplayName("Edge Case Tests")
        class EdgeCaseTests {
    
            @BeforeEach
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  2. cmd/server_test.go

    		c.Assert(err, nil)
    
    		response, err = s.client.Do(request)
    		c.Assert(err, nil)
    		c.Assert(response.StatusCode, http.StatusOK)
    	}
    
    	testCases := []struct {
    		getURL          string
    		expectedStrings []string
    	}{
    		{getListObjectsV1URL(s.endPoint, bucketName, "", "1000", ""), []string{"<Key>foo bar 1</Key>", "<Key>foo bar 2</Key>"}},
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 118.1K bytes
    - Viewed (0)
  3. internal/store/store_test.go

    				ItemCount: 1,
    			},
    			expectedString: "01894394-d046-4783-ba0d-f1c6885790dc.event.snappy",
    		},
    		{
    			key: Key{
    				Name:      "01894394-d046-4783-ba0d-f1c6885790dc",
    				Extension: ".event",
    				ItemCount: 1,
    			},
    			expectedString: "01894394-d046-4783-ba0d-f1c6885790dc.event",
    		},
    	}
    
    	for i, testCase := range testCases {
    		if testCase.expectedString != testCase.key.String() {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/netbios/NameServicePacketTest.java

            assertEquals(expectedString, packet.toString());
    
            // Test other opCode, resultCode, questionType, recordType branches
            packet.opCode = NameServicePacket.WACK;
            packet.resultCode = NameServicePacket.SRV_ERR;
            packet.questionType = NameServicePacket.NBSTAT;
            packet.recordType = NameServicePacket.NBSTAT;
            expectedString =
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationTest.java

            // Verify that the string part ends with the null terminator
            assertArrayEquals(expectedString, subArray(buffer, 1, expectedString.length));
            assertEquals(0, buffer[1 + expectedString.length], "String must be null terminated");
        }
    
        @Test
        @DisplayName("toString includes command name and filename")
        void testToStringIncludesInformation() {
            String str = cmd.toString();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/MultiReaderTest.java

        String testString = "abcdefgh";
        CharSource source = newCharSource(testString);
        Reader joinedReader = CharSource.concat(source, source).openStream();
    
        String expectedString = testString + testString;
        assertEquals(expectedString, CharStreams.toString(joinedReader));
      }
    
      private static CharSource newCharSource(String text) {
        return new CharSource() {
          @Override
          public Reader openStream() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/DfsReferralTest.java

            referral.resolveHashes = true;
    
            // When
            String expectedString =
                    "DfsReferral[pathConsumed=20,server=testServer,share=testShare,link=testLink,path=/test/path,ttl=300,expiration=1234567890,resolveHashes=true]";
            String actualString = referral.toString();
    
            // Then
            assertEquals(expectedString, actualString, "The toString method should return the expected string representation.");
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.8K bytes
    - Viewed (0)
Back to top