/** * Invokes the appropriate asserts to verify the state of a TestElement's associated TreeItem * * @param te * @param item the item representing <code>te</code> * @param shift the shift parameter being used */ private void checkState(String comment, TestElement te, TreeItem item, int shift) { assertEquals( "Wrong checkstate: " + comment, CheckStateProviderTestsUtil.shouldBeChecked(te, shift), item.getChecked()); assertEquals( "Wrong checkstate: " + comment, CheckStateProviderTestsUtil.shouldBeGrayed(te, shift), item.getGrayed()); }
/** * Invokes the appropriate asserts to verify the state of a TestElement. * * @param te * @param viewer the viewer <code>te</code> is in. * @param shift the shift parameter being used */ private void checkState(String comment, TestElement te, CheckboxTreeViewer viewer, int shift) { assertEquals( comment, CheckStateProviderTestsUtil.shouldBeChecked(te, shift), viewer.getChecked(te)); assertEquals( comment, CheckStateProviderTestsUtil.shouldBeGrayed(te, shift), viewer.getGrayed(te)); }