ScreenshotArgument { public List<DomSelector> getHiddenElementSelectors() { return hiddenElementSelectors; } protected  ScreenshotArgument(String screenshotId, List<CompareTarget> targets,
			List<DomSelector> hiddenElementSelectors); static ScreenshotArgumentBuilder builder(); static ScreenshotArgumentBuilder builder(String newScreenshotId); String getScreenshotId(); List<CompareTarget> getTargets(); List<DomSelector> getHiddenElementSelectors(); ScreenshotArgument withScreenshotId(String newScreenshotId); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void constructor_hiddenElementSelectors_null() throws Exception { ScreenshotArgument arg = new ScreenshotArgument("scid", new ArrayList<CompareTarget>(), null); assertThat(arg.getHiddenElementSelectors(), is(notNullValue())); assertThat(arg.getHiddenElementSelectors().isEmpty(), is(true)); }
@Test public void constructor_hiddenElementSelectors_null_unmodifiable() throws Exception { ScreenshotArgument arg = new ScreenshotArgument("scid", new ArrayList<CompareTarget>(), null); expected.expect(UnsupportedOperationException.class); arg.getHiddenElementSelectors().add(new DomSelector(SelectorType.ID, "id")); }
@Test public void getter_hiddenElementSelectors() throws Exception { DomSelector[] selectors = { new DomSelector(SelectorType.ID, "id"), new DomSelector(SelectorType.CLASS_NAME, "class") }; ScreenshotArgument arg = new ScreenshotArgument("scid", null, Arrays.asList(selectors)); List<DomSelector> result = arg.getHiddenElementSelectors(); assertArrayEquals(selectors, result.toArray(new DomSelector[result.size()])); }
@Test public void getter_hiddenElementSelectors_unmodifiable() throws Exception { DomSelector[] selectors = { new DomSelector(SelectorType.ID, "id"), new DomSelector(SelectorType.CLASS_NAME, "class") }; ScreenshotArgument arg = new ScreenshotArgument("scid", null, Arrays.asList(selectors)); expected.expect(UnsupportedOperationException.class); arg.getHiddenElementSelectors().add(new DomSelector(SelectorType.ID, "test")); }