- Sort Score
- Num 10 results
- Language All
Results 121 - 130 of 342 for getBytes (0.34 seconds)
-
src/test/java/org/codelibs/fess/helper/SambaHelperTest.java
// Setup system properties for DI container File file = File.createTempFile("test", ".properties"); file.deleteOnExit(); FileUtil.writeBytes(file.getAbsolutePath(), "test.property=test".getBytes("UTF-8")); DynamicProperties systemProps = new DynamicProperties(file); ComponentUtil.register(systemProps, "systemProperties"); sambaHelper = new SambaHelper(); } @TestCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 14.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/RelatedContentHelperTest.java
// Setup system properties for DI container File file = File.createTempFile("test", ".properties"); file.deleteOnExit(); FileUtil.writeBytes(file.getAbsolutePath(), "test.property=test".getBytes("UTF-8")); DynamicProperties systemProps = new DynamicProperties(file); ComponentUtil.register(systemProps, "systemProperties"); relatedContentHelper = new RelatedContentHelper() {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 14.6K bytes - Click Count (0) -
src/main/java/jcifs/ntlmssp/Type3Message.java
domainBytes = unicode ? domainName.getBytes(UNI_ENCODING) : domainName.getBytes(oemCp); size += domainBytes.length; } final String userName = getUser(); byte[] userBytes = null; if (userName != null && userName.length() != 0) { userBytes = unicode ? userName.getBytes(UNI_ENCODING) : userName.toUpperCase().getBytes(oemCp); size += userBytes.length;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 32.7K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeTest.java
private Configuration mockConfig; private TransCallNamedPipe transCallNamedPipe; private static final String TEST_PIPE_NAME = "\\\\PIPE\\\\testpipe"; private static final byte[] TEST_DATA = "Test pipe data".getBytes(); @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); } @Test @DisplayName("Test constructor initializes fields correctly") void testConstructorInitialization() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exec/SuggestCreatorTest.java
File tempPropFile = File.createTempFile("test_suggest_", ".properties"); tempPropFile.deleteOnExit(); FileUtil.writeBytes(tempPropFile.getAbsolutePath(), "test.property=value".getBytes()); SuggestCreator.Options options = new SuggestCreator.Options(); options.propertiesPath = tempPropFile.getAbsolutePath(); // Setup minimal mock components
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 11K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/sso/oic/OpenIdConnectAuthenticatorTest.java
authenticator = new OpenIdConnectAuthenticator(); final File propFile = File.createTempFile("oic_test", ".properties"); propFile.deleteOnExit(); FileUtil.writeBytes(propFile.getAbsolutePath(), "".getBytes("UTF-8")); systemProperties = new DynamicProperties(propFile); ComponentUtil.register(systemProperties, "systemProperties"); } @Test public void test_decodeBase64_null() {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jan 15 12:54:47 GMT 2026 - 11K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseContextTest.java
SMBUtil.writeInt2(24, buffer, 10); // DataOffset SMBUtil.writeInt4(32, buffer, 12); // DataLength (standard lease only) // Write name System.arraycopy("DLse".getBytes(), 0, buffer, 16, 4); // Write lease key Smb2LeaseKey key = new Smb2LeaseKey(); key.encode(buffer, 24); // Write lease state
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 01:47:47 GMT 2025 - 10.1K bytes - Click Count (0) -
src/test/java/jcifs/pac/kerberos/KerberosTicketTest.java
private static final String USER_REALM = "EXAMPLE.COM"; private static final int ENCRYPTION_TYPE = 23; // aes128-cts-hmac-sha1-96 private static final byte[] ENCRYPTED_DATA = "encrypted-data".getBytes(); @BeforeEach void setUp() { keys = new KerberosKey[] { kerberosKey }; } /** * Creates a byte array representing a Kerberos ticket for testing purposes.
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.4K bytes - Click Count (0) -
compat/maven-compat/src/test/java/org/apache/maven/artifact/AbstractArtifactComponentTestCase.java
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 10 09:40:15 GMT 2025 - 13.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/ByteSourceTest.java
assertEquals(bytes.length, source.copyTo(sink)); assertTrue(source.wasStreamOpened() && source.wasStreamClosed()); assertTrue(sink.wasStreamOpened() && sink.wasStreamClosed()); assertArrayEquals(bytes, sink.getBytes()); } public void testRead_toArray() throws IOException { assertArrayEquals(bytes, source.read()); assertTrue(source.wasStreamOpened() && source.wasStreamClosed()); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 15.6K bytes - Click Count (0)