- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 3,508 for should (0.04 sec)
-
tests/group_by_test.go
t.Errorf("name should be groupby, but got %v, total should be 60, but got %v", name, total) } if err := DB.Model(&User{}).Select("name, sum(age) as total").Where("name LIKE ?", "groupby%").Group("name").Having("name = ?", "groupby1").Row().Scan(&name, &total); err != nil { t.Errorf("no error should happen, but got %v", err) } if name != "groupby1" || total != 660 {
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Thu Jan 06 07:02:53 UTC 2022 - 3.3K bytes - Viewed (0) -
src/test/java/jcifs/CIFSUnsupportedCryptoExceptionTest.java
assertTrue(exception instanceof RuntimeCIFSException, "Should extend RuntimeCIFSException"); assertTrue(exception instanceof RuntimeException, "Should be a RuntimeException"); } @Test @DisplayName("Message constructor should create exception with specified message") void testMessageConstructor() { // Given & When
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/av/AvFlagsTest.java
assertNotNull(avFlags, "AvFlags object should not be null"); assertEquals(0x04030201, avFlags.getFlags(), "Flags should match the raw bytes (little-endian)"); // Test with zero byte[] zeroBytes = new byte[] { 0x00, 0x00, 0x00, 0x00 }; AvFlags zeroAvFlags = new AvFlags(zeroBytes); assertNotNull(zeroAvFlags, "AvFlags object should not be null for zero bytes");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2FindNext2Test.java
assertTrue(s.startsWith("Trans2FindNext2["), "toString should start with class name"); assertTrue(s.contains(",sid=" + sid), "toString should include sid in decimal"); assertTrue(s.contains(",searchCount=" + Trans2FindFirst2.LIST_SIZE), "toString should include searchCount using LIST_SIZE"); assertTrue(s.contains(",informationLevel=0x104"), "toString should include information level 0x104");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.9K bytes - Viewed (0) -
src/test/java/jcifs/spnego/SpnegoTokenTest.java
assertTrue(t.isParsed(), "parse should mark parsed"); assertArrayEquals(raw, t.getMechanismToken(), "parse should set mechanismToken"); } @Test @DisplayName("parse throws IOException on null input") void parseThrowsOnNull() { TestSpnegoToken t = new TestSpnegoToken(); IOException ex = assertThrows(IOException.class, () -> t.parse(null), "parse should throw IOException on null");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java
assertEquals(mid, request.getMid(), "MID should be set correctly"); assertEquals(asyncId, request.getAsyncId(), "AsyncId should be set correctly"); assertEquals(credits, request.getCredit(), "Credits should be set correctly"); assertEquals(treeId, request.getTreeId(), "Tree ID should be set correctly"); assertTrue((request.getFlags() & SMB2_FLAGS_ASYNC_COMMAND) != 0, "Async flag should be set for non-zero asyncId"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/SMBProtocolDecodingExceptionTest.java
assertEquals(message, ex.getMessage(), "Message should be preserved as provided"); assertNull(ex.getCause(), "Cause should be null when only message is provided"); // toString should include the class name and (if non-null) the message String ts = ex.toString(); assertTrue(ts.contains("SMBProtocolDecodingException"), "toString should include class name"); if (message != null && !message.isEmpty()) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/netbios/SessionRequestPacketTest.java
} @Test @DisplayName("Constructor with Configuration only should create empty Name instances") void testConstructorWithConfigOnly() { SessionRequestPacket packet = new SessionRequestPacket(mockConfig); assertNotNull(packet); // The packet should have calledName and callingName initialized but empty byte[] dst = new byte[256];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/util/CryptoTest.java
// Then assertNotNull(result); assertTrue(result.length > 0, "HMAC-T64 should produce non-empty result"); } @Test @DisplayName("Should perform RC4 encryption/decryption") void testRC4() throws Exception { // Given byte[] key = "testkey123456789".getBytes(); // 16 bytes byte[] plaintext = "This is a test message for RC4".getBytes(); // When
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.4K bytes - Viewed (0) -
src/test/java/jcifs/pac/kerberos/KerberosRelevantAuthDataTest.java
assertNotNull(authorizations, "The authorizations list should not be null."); assertEquals(2, authorizations.size(), "The authorizations list should contain two elements."); assertTrue(authorizations.contains(mockAuthData1), "The list should contain the first mocked auth data."); assertTrue(authorizations.contains(mockAuthData2), "The list should contain the second mocked auth data."); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9K bytes - Viewed (0)