PropertiesWrapper implements Properties { @Override public boolean setPropertyUnchecked(@NotNull String name, @NotNull String value) { try { setProperty(name, value); return true; } catch (Exception e) { return false; } } private  PropertiesWrapper(@NotNull Object object); protected  PropertiesWrapper(); static Properties wrapObject(@NotNull Object object); static String[] getAllPropertyNames(Class clazz); @NotNull @Override String[] getAllPropertyNames(); @Nullable @Override Object getProperty(@NotNull String name); @Override void setProperty(@NotNull String name, @NotNull String value); @Override void addProperty(@NotNull String name, @NotNull String value); @Override void removeProperty(@NotNull String name, @NotNull String value); @Override void clearProperty(@NotNull String name, @Nullable String value); @Nullable @Override Object getPropertyUnchecked(@NotNull String name); @Override boolean setPropertyUnchecked(@NotNull String name, @NotNull String value); @Override boolean addPropertyUnchecked(@NotNull String name, @NotNull String value); @Override boolean removePropertyUnchecked(@NotNull String name, @NotNull String value); @Override boolean clearPropertyUnchecked(@NotNull String name, @Nullable String value);  }
@Test public void testSetPropertyUnchecked() throws Exception { assertFalse(comprehensive.aInt == 500); comprehensive.setPropertyUnchecked("aint", "500"); assertEquals(500, comprehensive.aInt); }
@Test public void testSetPropertyUncheckedNested() throws Exception { assertFalse(comprehensive.custom.name.equals("aname")); assertTrue(comprehensive.setPropertyUnchecked("custom.name", "aname")); assertEquals("aname", comprehensive.custom.name); }
@Test public void testSetPropertyUncheckedNoSuchField() throws Exception { comprehensive.setPropertyUnchecked("booboooboo", "value"); }
@Test public void testSetPropertyUncheckedNestedNoSuchField() throws Exception { comprehensive.setPropertyUnchecked("custom.fake", "value"); }