- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 210 for minimal (0.06 sec)
-
src/test/java/jcifs/pac/PacTest.java
pacMacMock.when(() -> PacMac.calculateMac(anyInt(), any(), any())).thenReturn(mockChecksum); // Create a minimal valid PAC structure ByteArrayOutputStream baos = new ByteArrayOutputStream(); writeLittleEndianInt(baos, 3); // bufferCount = 3 (minimum required) writeLittleEndianInt(baos, PacConstants.PAC_VERSION); // version // Buffer 1: LOGON_INFO
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/test/java/jcifs/pac/kerberos/KerberosApRequestTest.java
import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.ValueSource; import jcifs.pac.PACDecodingException; class KerberosApRequestTest { // Helper: build a minimal, valid-looking ASN.1 AP-REQ sequence with tags 0/1/2 private ASN1Sequence buildMinimalApReqSeq(byte apOptions) { ASN1EncodableVector v = new ASN1EncodableVector(); // pvno [0] INTEGER 5Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/dtyp/ACETest.java
testBuffer[5] = 0x00; // Access mask byte 1 testBuffer[6] = 0x12; // Access mask byte 2 testBuffer[7] = 0x00; // Access mask byte 3 // Add minimal SID data (S-1-1-0 - Everyone) testBuffer[8] = 0x01; // Revision testBuffer[9] = 0x01; // Sub-authority count testBuffer[10] = 0x00; // Identifier authority testBuffer[11] = 0x00;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.6K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacCredentialTypeTest.java
assertEquals("Invalid PAC credential type", exception.getMessage()); } /** * Tests the constructor with a byte array that is larger than the minimal buffer size. */ @Test void testConstructorWithDataMuchLarger() { // A byte array with a length greater than 32 should also be considered too large. byte[] veryLargeData = new byte[100];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.9K bytes - Viewed (0) -
src/test/java/jcifs/spnego/SpnegoTokenTest.java
import java.io.IOException; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; /** * Tests for SpnegoToken. * Uses a minimal concrete subclass to exercise abstract methods. */ class SpnegoTokenTest { /** * Minimal concrete implementation for testing. * - parse: sets mechanismToken, throws on null * - toByteArray: returns mechanismToken or empty array if 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/smb1/trans2/Trans2GetDfsReferralResponseTest.java
assertThrows(ArrayIndexOutOfBoundsException.class, () -> { response.readDataWireFormat(buffer, 0, 0); }); } @Test @DisplayName("Should handle minimal DFS referral buffer") void testReadDataWireFormatMinimalBuffer() { byte[] buffer = createMinimalDfsReferralBuffer(); int bytesRead = response.readDataWireFormat(buffer, 0, buffer.length);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameServiceClientImplTest.java
import jcifs.Configuration; import jcifs.NetbiosAddress; import jcifs.NetbiosName; import jcifs.ResolverType; /** * Test class for NameServiceClientImpl focusing on public API methods. * Optimized for fast execution with minimal network calls. */ @ExtendWith(MockitoExtension.class) @MockitoSettings(strictness = Strictness.LENIENT) @DisplayName("NameServiceClientImpl Tests") class NameServiceClientImplTest { @MockRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/pac/kerberos/KerberosPacAuthDataTest.java
Mockito.when(mock.getServerSignature()).thenReturn(mockServerSig); Mockito.when(mock.getKdcSignature()).thenReturn(mockKdcSig); })) { // Create minimal PAC data byte[] pacData = createMinimalPacData(); // Test constructor KerberosPacAuthData authData = new KerberosPacAuthData(pacData, keys); assertNotNull(authData.getPac());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 6.3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/util/SuggestUtilTest.java
assertTrue(keywords.size() > 0); } @Test public void testCreateBulkLineWithMinimalItem() { // Test with minimal SuggestItem SuggestItem item = new SuggestItem(new String[] { "minimal" }, new String[0][0], new String[0], 0, // queryFreq 0, // docFreq 1.0f, // userBoost
Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Mon Sep 01 13:33:03 UTC 2025 - 18.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbFileFilterTest.java
* Mockito to guarantee that implementation classes do not inadvertently * bypass the filter logic. */ public class SmbFileFilterTest { /** * A minimal implementation that accepts every {@link SmbFile}. */ private final SmbFileFilter ALWAYSACTIVE = new SmbFileFilter() { @Override public boolean accept(SmbFile file) throws SmbException {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.2K bytes - Viewed (0)