### Question:
Window extends AbstractCriterium implements RightCriterium { public Window() { this.xpfactory = XPathFactory.newInstance(); } Window(); @Override EvaluatingResultState evalute(); EvaluatingResultState resolveInternal(int firstYear, int secondYear,
                                                 String pid, String xpath, Document xmlDoc); EvaluatingResultState evaluateDoc(int firstYear, int secondYear,
                                             Document xmlDoc, String xPathExpression); @Override RightCriteriumPriorityHint getPriorityHint(); @Override boolean isParamsNecessary(); @Override SecuredActions[] getApplicableActions(); @Override boolean validateParams(Object[] vals); static String[] MODS_XPATHS; static final Logger LOGGER; }### Answer:
@Test public void testW1() throws IOException, LexerException, ParserConfigurationException, SAXException, RightCriteriumException { String firstYearWallFromGUI = "1770"; String secondYearWallFromGUI = "1980"; String requestedPID = DataPrepare.DROBNUSTKY_PIDS[0]; EvaluatingResultState evaluated = window(firstYearWallFromGUI, secondYearWallFromGUI, requestedPID); Assert.assertEquals(evaluated, EvaluatingResultState.TRUE); }
@Test public void testW3() throws IOException, LexerException, ParserConfigurationException, SAXException, RightCriteriumException { String firstYearWallFromGUI = "1770"; String secondYearWallFromGUI = "1980"; String requestedPID = DataPrepare.DROBNUSTKY_PIDS[2]; EvaluatingResultState evaluated = window(firstYearWallFromGUI, secondYearWallFromGUI, requestedPID); Assert.assertEquals(evaluated, EvaluatingResultState.TRUE); }