@Test public void testConstructor() { PreferenceNode foo = new org.apache.cordova.PreferenceNode("fullscreen", "false", false); assertEquals("fullscreen", foo.name); assertEquals("false", foo.value); assertEquals(false, foo.readonly); }
@Before public void setUp() { preferences = new PreferenceSet(); screen = new PreferenceNode("fullscreen", "true", false); }
@Test public void testNameAssignment() { PreferenceNode foo = new org.apache.cordova.PreferenceNode("fullscreen", "false", false); foo.name = "widescreen"; assertEquals("widescreen", foo.name); }
@Test public void testValueAssignment() { PreferenceNode foo = new org.apache.cordova.PreferenceNode("fullscreen", "false", false); foo.value = "maybe"; assertEquals("maybe", foo.value); }
@Test public void testReadonlyAssignment() { PreferenceNode foo = new org.apache.cordova.PreferenceNode("fullscreen", "false", false); foo.readonly = true; assertEquals(true, foo.readonly); }