@Override public void checkIfTestSetCanBeReported(TestSet testSetForTest) { TestSet currentlyAttached = TestSet.getThreadTestSet(); if (currentlyAttached != null && currentlyAttached != testSetForTest) { currentlyAttached.setAllScheduled(getRunListener()); } }
@Test public void allSites() { Mesh mesh = mock(Mesh.class); when(mesh.getSites()).thenReturn(Arrays.asList("A", "B", "C", "D")); when(mesh.isSplitCell()).thenReturn(true); for (int row = 0; row < 4; row++) { for (int column = 0; column < 4; column++) { when(mesh.statusFor(row, column, Mesh.CellHalf.INITIATED_BY_ROW)) .thenReturn((row + column) % 4); when(mesh.statusFor(row, column, Mesh.CellHalf.INITIATED_BY_COLUMN)) .thenReturn((row + column) % 4); } } StatusMatcher.Instance instance = mock(StatusMatcher.Instance.class); when(instance.isMatched()).thenReturn(Boolean.TRUE); StatusMatcher statusMatcher = mock(StatusMatcher.class); when(statusMatcher.prepareInstance(mesh)).thenReturn(instance); TestSet testSet = Madalert.forAllSites(); testSet.match(mesh, statusMatcher); InOrder order = inOrder(instance); order.verify(instance).match(1, 0, Mesh.CellHalf.INITIATED_BY_ROW, 1); order.verify(instance).match(1, 0, Mesh.CellHalf.INITIATED_BY_COLUMN, 1); order.verify(instance).match(2, 0, Mesh.CellHalf.INITIATED_BY_ROW, 2); order.verify(instance).match(2, 0, Mesh.CellHalf.INITIATED_BY_COLUMN, 2); order.verify(instance).match(3, 0, Mesh.CellHalf.INITIATED_BY_ROW, 3); order.verify(instance).match(3, 0, Mesh.CellHalf.INITIATED_BY_COLUMN, 3); order.verify(instance).match(0, 1, Mesh.CellHalf.INITIATED_BY_ROW, 1); order.verify(instance).match(0, 1, Mesh.CellHalf.INITIATED_BY_COLUMN, 1); order.verify(instance).match(2, 1, Mesh.CellHalf.INITIATED_BY_ROW, 3); order.verify(instance).match(2, 1, Mesh.CellHalf.INITIATED_BY_COLUMN, 3); order.verify(instance).match(3, 1, Mesh.CellHalf.INITIATED_BY_ROW, 0); order.verify(instance).match(3, 1, Mesh.CellHalf.INITIATED_BY_COLUMN, 0); order.verify(instance).match(0, 2, Mesh.CellHalf.INITIATED_BY_ROW, 2); order.verify(instance).match(0, 2, Mesh.CellHalf.INITIATED_BY_COLUMN, 2); order.verify(instance).match(1, 2, Mesh.CellHalf.INITIATED_BY_ROW, 3); order.verify(instance).match(1, 2, Mesh.CellHalf.INITIATED_BY_COLUMN, 3); order.verify(instance).match(3, 2, Mesh.CellHalf.INITIATED_BY_ROW, 1); order.verify(instance).match(3, 2, Mesh.CellHalf.INITIATED_BY_COLUMN, 1); order.verify(instance).match(0, 3, Mesh.CellHalf.INITIATED_BY_ROW, 3); order.verify(instance).match(0, 3, Mesh.CellHalf.INITIATED_BY_COLUMN, 3); order.verify(instance).match(1, 3, Mesh.CellHalf.INITIATED_BY_ROW, 0); order.verify(instance).match(1, 3, Mesh.CellHalf.INITIATED_BY_COLUMN, 0); order.verify(instance).match(2, 3, Mesh.CellHalf.INITIATED_BY_ROW, 1); order.verify(instance).match(2, 3, Mesh.CellHalf.INITIATED_BY_COLUMN, 1); }
@Override protected void verify() { super.verify(); TestMap.this.verify(); }
@Test @Override public void testEnumTypeFieldsClassNotNullable() throws Exception { super.testEnumTypeFieldsClassNotNullable(); }
public void refineCondition(TestSet tests) { refineCondition(tests.getPartialSqlCondition()); }
@Test @Override public void testMessagePackableTypeFieldsClassNotNullable() throws Exception { super.testMessagePackableTypeFieldsClassNotNullable(); }
@Test @Override public void testReferenceTypeFieldsClass() throws Exception { super.testReferenceTypeFieldsClass(); }
@Test @Override public void testReferenceCycleTypeFieldsClassNotNullable() throws Exception { super.testReferenceCycleTypeFieldsClassNotNullable(); }
@Test @Override public void testInheritanceClassNotNullable() throws Exception { super.testInheritanceClassNotNullable(); }
@Test @Override public void testPrimitiveTypeFieldsClass() throws Exception { super.testPrimitiveTypeFieldsClass(); }
@Test @Override public void testUserDefinedTypeFieldsClass() throws Exception { super.testUserDefinedTypeFieldsClass(); }
@Test @Override public void testModifiersFieldsClassNotNullable() throws Exception { super.testModifiersFieldsClassNotNullable(); }
@Test @Override public void testFinalClass() throws Exception { super.testFinalClass(); }
@Test @Override public void testListTypeFieldsClass() throws Exception { super.testListTypeFieldsClass(); }