/** * Checks the value is in the expected state, and that it is represented by * the given set of numbers. * * @param substrateValues */ private void checkDirty(Integer ... substrateValues) { check(); assertSubstrateEquals(substrateValues); }
/** * Checks the value is in the expected state, and that it is represented by * the given set of numbers. * * @param substrateValues */ private void checkDirty(Integer ... substrateValues) { check(); assertSubstrateEquals(substrateValues); }
/** * Check the value is in the expected state, and that it is represented * cleanly; i.e., only one element in the substrate. */ private void checkClean() { check(); assertSubstrateEquals(stack.listener.getLast()); }
/** * Check the value is in the expected state, and that it is represented * cleanly; i.e., only one element in the substrate. */ private void checkClean() { check(); assertSubstrateEquals(stack.listener.getLast()); }
public void testSetOfALesserValuesDoesNothing() { // Set up the target with some initial state. createTargetOn(10); getTarget().set(5); assertEquals(new Integer(10), getTarget().get()); assertSubstrateEquals(10); }
public void testSetOfALesserValuesDoesNothing() { // Set up the target with some initial state. createTargetOn(10); getTarget().set(5); assertEquals(new Integer(10), getTarget().get()); assertSubstrateEquals(10); }
public void testLeavesObsoleteEntriesOnLoadButCleansOnWrite() { // Set up the target with some initial state. createTargetOn(10, 30, 20); assertSubstrateEquals(10, 30, 20); expectHistory(30, 40); getTarget().set(40); checkClean(); }
public void testLeavesObsoleteEntriesOnLoadButCleansOnWrite() { // Set up the target with some initial state. createTargetOn(10, 30, 20); assertSubstrateEquals(10, 30, 20); expectHistory(30, 40); getTarget().set(40); checkClean(); }