Пример #1
0
 protected void assertScriptExecutionIncrement(int expectedIncrement) {
   long currentScriptExecutionCount = InternalMonitor.getScriptExecutionCount();
   long actualIncrement = currentScriptExecutionCount - lastScriptExecutionCount;
   assertEquals(
       "Unexpected increment in script execution count",
       (long) expectedIncrement,
       actualIncrement);
   lastScriptExecutionCount = currentScriptExecutionCount;
 }
Пример #2
0
 protected void rememberScriptExecutionCount() {
   lastScriptExecutionCount = InternalMonitor.getScriptExecutionCount();
 }