- Sort Score
- Result 10 results
- Languages All
Results 231 - 240 of 4,328 for new1 (0.02 sec)
-
src/test/java/jcifs/tests/persistent/DurableHandleContextTest.java
public void testDurableHandleReconnectInvalidFileId() { assertThrows(IllegalArgumentException.class, () -> { new DurableHandleReconnect(new byte[8]); // Wrong length }); assertThrows(IllegalArgumentException.class, () -> { new DurableHandleReconnect(new byte[20]); // Wrong length }); } @Test public void testHandleType() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 4.6K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacDataInputStreamTest.java
byte[] buffer = new byte[4]; pdis.readFully(buffer); assertArrayEquals(data, buffer); } @Test public void testReadFullyWithOffset() throws IOException { byte[] data = new byte[] { 0x01, 0x02, 0x03, 0x04 }; PacDataInputStream pdis = createInputStream(data); byte[] buffer = new byte[6]; pdis.readFully(buffer, 1, 4);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 9.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/eventbus/EventBusTest.java
StringCatcher stringCatcher = new StringCatcher(); List<Object> objectEvents = new ArrayList<>(); Object objCatcher = new Object() { @Subscribe public void eat(Object food) { objectEvents.add(food); } }; List<Comparable<?>> compEvents = new ArrayList<>(); Object compCatcher = new Object() { @Subscribe
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 11.3K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/artifact/metadata/TestMetadataSource.java
Set<Artifact> dependencies = new HashSet<>(); if ("g".equals(artifact.getArtifactId())) { Artifact a = null; try { a = factory.createBuildArtifact("org.apache.maven", "h", "1.0", "jar"); dependencies.add(a); } catch (Exception e) { throw new ArtifactMetadataRetrievalException("Error retrieving metadata", e, a);
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 3.8K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java
return container; } protected File getProject(String name) throws Exception { File source = new File(new File(getBasedir(), getProjectsDirectory()), name); File target = new File(new File(getBasedir(), "target"), name); FileUtils.copyDirectoryStructureIfModified(source, target); return new File(target, "pom.xml"); }
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Jan 24 17:29:44 UTC 2025 - 12.1K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/repository/TestRepositorySystem.java
public ArtifactRepository buildArtifactRepository(Repository repository) throws InvalidRepositoryException { return new MavenArtifactRepository( repository.getId(), repository.getUrl(), new DefaultRepositoryLayout(), new ArtifactRepositoryPolicy(), new ArtifactRepositoryPolicy()); } @Override
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Jan 10 08:42:00 UTC 2025 - 12K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/Platform.java
ByteArrayOutputStream bytes = new ByteArrayOutputStream(); try { ObjectOutputStream out = new ObjectOutputStream(bytes); out.writeObject(object); ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes.toByteArray())); return (T) requireNonNull(in.readObject()); } catch (IOException | ClassNotFoundException e) { throw new RuntimeException(e); } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 1.7K bytes - Viewed (0) -
src/test/java/jcifs/spnego/NegTokenTargTest.java
void testRoundTripFull() throws IOException { // Arrange – create a fully populated token ASN1ObjectIdentifier mech = new ASN1ObjectIdentifier("1.2.840.113554.1.2.2"); byte[] tokenArray = new byte[] { 1, 2, 3 }; byte[] mic = new byte[] { 9, 9, 9 }; NegTokenTarg original = new NegTokenTarg(NegTokenTarg.ACCEPT_COMPLETED, mech, tokenArray, mic); // Act – serialise and parse back
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/EqualsTester.java
* that are equal to each other but unequal to the objects in any other group. For example: * * <pre> * new EqualsTester() * .addEqualityGroup(new User("page"), new User("page")) * .addEqualityGroup(new User("sergey")) * .testEquals(); * </pre> * * <p>This tests: * * <ul> * <li>comparing each object against itself returns true
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 6.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/JobProcessTest.java
Process mockProcess = createMockProcess("callback test\nanother line"); List<String> callbackResults = new ArrayList<>(); Consumer<String> callback = line -> callbackResults.add(line); JobProcess jobProcess = new JobProcess(mockProcess, 50, callback); assertNotNull(jobProcess); assertSame(mockProcess, jobProcess.getProcess());
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 8.5K bytes - Viewed (0)