@Test public void testFieldNameOf() throws Exception { String name = "foo"; Assert.assertTrue("foo".equals(FieldName.of("foo"))); Assert.assertTrue("bar".equals(FieldName.of("bar"))); new AssertedFailure(FieldName.FieldNameNotFoundException.class) { @Override protected void thisMustFail() throws Throwable { FieldName.of("buh"); } }; Assert.assertTrue("x".equals(FieldName.of(E2.class, "x"))); Assert.assertTrue("y".equals(FieldName.of(E2.class, "y"))); }
public static String of(final String name) { return of(callingClass(), name); }
FieldName { public static String of(final String name) { return of(callingClass(), name); } }
FieldName { public static String of(final String name) { return of(callingClass(), name); }  }
FieldName { public static String of(final String name) { return of(callingClass(), name); }  static String of(final String name); static String of(final Class<?> clazz, final String name); }
FieldName { public static String of(final String name) { return of(callingClass(), name); }  static String of(final String name); static String of(final Class<?> clazz, final String name);  }