- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 166 for newInstance (0.05 sec)
-
src/test/java/jcifs/smb/SmbRandomAccessFileTest.java
SmbRandomAccessFile raf = newInstance("r", false, false, false); byte[] buf = new byte[4]; assertEquals(0, raf.read(buf, 0, 0)); } @Test @DisplayName("read(): returns -1 when underlying read reports EOF") void read_returnsMinusOne_onEOF() throws Exception { SmbRandomAccessFile raf = spy(newInstance("r", false, false, false));Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/main/java/org/codelibs/core/xml/DocumentBuilderFactoryUtil.java
*/ public static DocumentBuilderFactory newInstance() { return newInstance(false); } /** * Returns a new instance of {@link DocumentBuilderFactory}. * * @param external * If {@code true}, external access is allowed. * @return A new instance of {@link DocumentBuilderFactory}. */ public static DocumentBuilderFactory newInstance(final boolean external) {Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 2.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtCancelTest.java
Constructor<SmbComNtCancel> constructor = SmbComNtCancel.class.getDeclaredConstructor(Configuration.class, int.class); constructor.setAccessible(true); SmbComNtCancel cancel = constructor.newInstance(mockConfig, testMid); // Then assertNotNull(cancel); assertEquals(testMid, cancel.getMid()); // Verify command is set correctly
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.8K bytes - Viewed (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleDocumentationExtension.java
public GradleDocumentationExtension(ObjectFactory objects) { releaseNotes = objects.newInstance(ReleaseNotes.class); userManual = objects.newInstance(UserManual.class); dslReference = objects.newInstance(DslReference.class); javadocs = objects.newInstance(Javadocs.class); kotlinDslReference = objects.newInstance(KotlinDslReference.class); } /**
Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Tue Aug 20 14:11:17 UTC 2024 - 4.4K bytes - Viewed (0) -
compat/maven-builder-support/src/test/java/org/apache/maven/building/ProblemCollectorFactoryTest.java
class ProblemCollectorFactoryTest { @Test void testNewInstance() { ProblemCollector collector1 = ProblemCollectorFactory.newInstance(null); Problem problem = new DefaultProblem("MESSAGE1", null, null, -1, -1, null); ProblemCollector collector2 = ProblemCollectorFactory.newInstance(Collections.singletonList(problem)); assertNotSame(collector1, collector2); assertEquals(0, collector1.getProblems().size());Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Sun Jul 20 20:19:43 UTC 2025 - 2.3K bytes - Viewed (0) -
compat/maven-toolchain-builder/src/test/java/org/apache/maven/toolchain/building/ToolchainsBuildingExceptionTest.java
} @Test void testOneProblem() { ProblemCollector problemCollector = ProblemCollectorFactory.newInstance(null); problemCollector.add(Problem.Severity.ERROR, "MESSAGE", 3, 5, new Exception()); ToolchainsBuildingException e = new ToolchainsBuildingException(problemCollector.getProblems()); assertEquals(Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Mar 26 19:31:34 UTC 2025 - 3.1K bytes - Viewed (0) -
compat/maven-model/src/test/java/org/apache/maven/model/v4/MavenModelVersionTest.java
} @Test void testV4ModelPriority() { Model m = model.withBuild(Build.newInstance() .withPlugins(Collections.singleton(Plugin.newInstance() .withExecutions(Collections.singleton( PluginExecution.newInstance().withPriority(5)))))); assertEquals("4.0.0", new MavenModelVersion().getModelVersion(m)); }Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/ArrayUtil.java
assertArgumentNotNull("array", array); final int length = array.length; @SuppressWarnings("unchecked") final T[] newArray = (T[]) Array.newInstance(array.getClass().getComponentType(), length + 1); System.arraycopy(array, 0, newArray, 0, length); newArray[length] = obj; return newArray; } /**
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 41.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/ConstructorUtil.java
* @see Constructor#newInstance(Object[]) */ public static <T> T newInstance(final Constructor<T> constructor, final Object... args) throws InstantiationRuntimeException, IllegalAccessRuntimeException { assertArgumentNotNull("constructor", constructor); try { return constructor.newInstance(args); } catch (final InstantiationException e) {Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 3.1K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/exception/CrawlerSystemExceptionTest.java
assertNotNull(exception1); assertEquals(message1, exception1.getMessage()); assertNull(exception1.getCause()); // Test with suppression disabled and writable stack trace String message2 = "Test with suppression disabled"; CrawlerSystemException exception2 = constructor.newInstance(message2, false, true);
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Wed Sep 03 14:42:53 UTC 2025 - 20K bytes - Viewed (0)