- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 53 for getField (0.63 sec)
-
src/test/java/jcifs/internal/smb1/com/SmbComLockingAndXTest.java
setField(lock, "pid", 123); setField(lock, "byteOffset", 100L); setField(lock, "lengthInBytes", 200L); LockingAndXRange unlock = new LockingAndXRange(false); setField(unlock, "pid", 456); setField(unlock, "byteOffset", 300L); setField(unlock, "lengthInBytes", 400L); setField(cmd, "locks", new LockingAndXRange[] { lock });
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.1K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/FieldUtilTest.java
final Field field = getClass().getField("objectField"); final Integer testData = Integer.valueOf(123); FieldUtil.set(field, this, testData); assertThat((Integer) FieldUtil.get(field, this), is(testData)); } /** * @throws Exception */ @Test public void testGetIntField() throws Exception { final Field field = getClass().getField("intField");
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Fri Jun 20 13:40:57 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComSessionSetupAndXTest.java
String accountName = (String) getField(obj, "accountName"); String primaryDomain = (String) getField(obj, "primaryDomain"); // The actual implementation keeps lowercase for guest when Unicode is not enabled assertEquals("guest", accountName); assertEquals("DOM", primaryDomain); byte[] lm = (byte[]) getField(obj, "lmHash"); byte[] nt = (byte[]) getField(obj, "ntHash");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbRandomAccessFileTest.java
void close_sharedFile_closesHandle_only() throws Exception { SmbRandomAccessFile raf = newInstance("rw", false, true, false); SmbFile file = (SmbFile) getField(raf, "file"); SmbFileHandleImpl handle = (SmbFileHandleImpl) getField(raf, "handle"); // Act raf.close(); // Assert interactions verify(handle, atLeastOnce()).close();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/ClassUtilTest.java
ClassUtil.forName(""); } /** * @throws Exception */ @Test(expected = EmptyArgumentException.class) public void testGetField_EmptyName() throws Exception { ClassUtil.getField(getClass(), ""); } /** * @throws Exception */ @Test(expected = EmptyArgumentException.class) public void testGetMethod_EmptyName() throws Exception {
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 6.2K bytes - Viewed (0) -
guava/src/com/google/common/base/Enums.java
* Description} annotation on the {@code GOLF} constant of enum {@code Sport}, use {@code * Enums.getField(Sport.GOLF).getAnnotation(Description.class)}. * * @since 12.0 */ public static Field getField(Enum<?> enumValue) { Class<?> clazz = enumValue.getDeclaringClass(); try { return clazz.getDeclaredField(enumValue.name());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jul 01 13:41:58 UTC 2025 - 4.8K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/impl/FieldDescImplTest.java
final BeanDesc beanDesc = new BeanDescImpl(MyBean.class); final FieldDesc hoge = beanDesc.getFieldDesc("HOGE"); assertThat(hoge.getBeanDesc(), is(sameInstance(beanDesc))); assertThat(hoge.getField(), is(MyBean.class.getDeclaredField("HOGE"))); assertThat(hoge.getFieldName(), is("HOGE")); assertThat(hoge.getFieldType(), is(sameClass(String.class))); assertThat(hoge.isPublic(), is(true));
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/NetShareEnumTest.java
} } private void setFieldValue(Object obj, String fieldName, Object value) throws Exception { Field field = getField(obj.getClass(), fieldName); field.setAccessible(true); field.set(obj, value); } private Field getField(Class<?> clazz, String fieldName) throws NoSuchFieldException { while (clazz != null) { try {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
android/guava/src/com/google/common/io/TempFileCreator.java
// Try another way. } try { int version = (int) Class.forName("android.os.Build$VERSION").getField("SDK_INT").get(null); int jellyBean = (int) Class.forName("android.os.Build$VERSION_CODES").getField("JELLY_BEAN").get(null); /* * I assume that this check can't fail because JELLY_BEAN will be present only if we're
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/NetServerEnum2Test.java
} } private void setFieldValue(Object obj, String fieldName, Object value) throws Exception { Field field = getField(obj.getClass(), fieldName); field.setAccessible(true); field.set(obj, value); } private Field getField(Class<?> clazz, String fieldName) throws NoSuchFieldException { while (clazz != null) { try {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.7K bytes - Viewed (0)