- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for testValue (0.05 sec)
-
impl/maven-core/src/test/java/org/apache/maven/configuration/internal/CompositeBeanHelperPerformanceTest.java
converterLookup = new DefaultConverterLookup(); evaluator = mock(ExpressionEvaluator.class); listener = mock(ConfigurationListener.class); when(evaluator.evaluate(anyString())).thenReturn("testValue"); for (int i = 0; i < 10; i++) { when(evaluator.evaluate(Integer.toString(i))).thenReturn(i); } when(evaluator.evaluate("123")).thenReturn(123);
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Thu Jul 17 07:40:49 UTC 2025 - 16.6K bytes - Viewed (0) -
impl/maven-core/src/test/java/org/apache/maven/configuration/internal/EnhancedCompositeBeanHelperTest.java
config.setValue("testValue"); when(evaluator.evaluate("testValue")).thenReturn("testValue"); helper.setProperty(bean, "name", String.class, config); assertEquals("testValue", bean.getName()); verify(listener).notifyFieldChangeUsingSetter("name", "testValue", bean); } @Test void testSetPropertyWithField() throws Exception {
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Nov 12 14:59:46 UTC 2025 - 8.7K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java
// Given: NdrShort with test value int testValue = 123; NdrShort ndrShort = new NdrShort(testValue); // When: Encoding the value ndrShort.encode(mockBuffer); // Then: Should call enc_ndr_short with masked value verify(mockBuffer).enc_ndr_short(testValue & 0xFF); verifyNoMoreInteractions(mockBuffer); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.2K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrHyperTest.java
// Test the encode method long testValue = 987654321098765L; NdrHyper ndrHyper = new NdrHyper(testValue); // Call the encode method with the mocked NdrBuffer ndrHyper.encode(mockNdrBuffer); // Verify that enc_ndr_hyper was called exactly once with the correct value verify(mockNdrBuffer, times(1)).enc_ndr_hyper(testValue); verifyNoMoreInteractions(mockNdrBuffer); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.2K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrLongTest.java
int testValue = 98765; NdrLong ndrLong = new NdrLong(testValue); // Call the encode method ndrLong.encode(mockNdrBuffer); // Verify that enc_ndr_long was called exactly once with the correct value verify(mockNdrBuffer, times(1)).enc_ndr_long(testValue); // Verify that no other interactions occurred with the mock bufferRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileInternalInfoTest.java
}; for (long testValue : testValues) { FileInternalInfo testInfo = new FileInternalInfo(); byte[] buffer = new byte[8]; SMBUtil.writeInt8(testValue, buffer, 0); int bytesDecoded = testInfo.decode(buffer, 0, buffer.length); assertEquals(8, bytesDecoded); assertEquals(testValue, testInfo.getIndexNumber());Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java
// Test various values long[] testValues = { 0L, 1L, -1L, Long.MAX_VALUE, Long.MIN_VALUE, 0x123456789ABCDEFL }; for (long testValue : testValues) { // Create and encode FileEndOfFileInformation original = new FileEndOfFileInformation(testValue); byte[] buffer = new byte[8]; int encoded = original.encode(buffer, 0);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
compat/maven-toolchain-builder/src/test/java/org/apache/maven/toolchain/building/DefaultToolchainsBuilderTest.java
@BeforeEach void onSetup() { // MockitoAnnotations.openMocks(this); Map<String, String> envVarMap = new HashMap<>(); envVarMap.put("testKey", "testValue"); envVarMap.put("testSpecialCharactersKey", "<test&Value>"); OperatingSystemUtils.setEnvVarSource(new TestEnvVarSource(envVarMap)); } @Test void testBuildEmptyRequest() throws Exception {Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 14K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapValuesTester.java
@SuppressWarnings("JUnit4ClassUsedInJUnit3") public class MultimapValuesTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> { public void testValues() { List<V> expected = new ArrayList<>(); for (Entry<K, V> entry : getSampleElements()) { expected.add(entry.getValue()); } assertEqualIgnoringOrder(expected, multimap().values()); }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 2.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/EmptyImmutableTableTest.java
public void testRowKeySet() { assertEquals(ImmutableSet.of(), INSTANCE.rowKeySet()); } public void testRowMap() { assertEquals(ImmutableMap.of(), INSTANCE.rowMap()); } public void testValues() { assertTrue(INSTANCE.values().isEmpty()); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 3.3K bytes - Viewed (0)