@Test public void getWhat() { Object field = ReflectionTestUtils.getField(LinkPath.class, "LINK"); String link = field != null ? field.toString() : ""; field = ReflectionTestUtils.getField(LinkPath.class, "HREF"); String href = field != null ? field.toString() : ""; Assert.assertEquals(LinkPath.get("test"), String.format("%s.%s.%s", link, "test", href)); }
public static String get(final String what) { return String.format("%s.%s.%s", LINK, what, HREF); }
LinkPath { public static String get(final String what) { return String.format("%s.%s.%s", LINK, what, HREF); } }
LinkPath { public static String get(final String what) { return String.format("%s.%s.%s", LINK, what, HREF); } private  LinkPath(); }
LinkPath { public static String get(final String what) { return String.format("%s.%s.%s", LINK, what, HREF); } private  LinkPath(); static String get(final String what); static String getSelf(final String what); static String get(); }
LinkPath { public static String get(final String what) { return String.format("%s.%s.%s", LINK, what, HREF); } private  LinkPath(); static String get(final String what); static String getSelf(final String what); static String get(); static final String EMBEDDED; static final String PAGE_SIZE_PARAM_META; static final String PAGE_SORT_PARAM_META; static final String PAGE_PAGE_PARAM_META; }