1 24 25 package org.objectweb.cjdbc.scenario.raidb1.recoverylog; 26 27 import org.objectweb.cjdbc.controller.backend.DatabaseBackend; 28 import org.objectweb.cjdbc.controller.virtualdatabase.VirtualDatabase; 29 import org.objectweb.cjdbc.scenario.templates.Raidb1RecoveryTemplate; 30 31 39 public class BasicRecoveryScenario extends Raidb1RecoveryTemplate 40 { 41 42 47 public void testLastKnownCheckpoint() throws Exception 48 { 49 String backend = "localhost2"; 50 String checkpoint = "check" + System.currentTimeMillis(); 51 mainVdb.disableBackendWithCheckpoint(backend); 52 DatabaseBackend db = mainVdb.getAndCheckBackend(backend, 53 VirtualDatabase.NO_CHECK_BACKEND); 54 assertEquals("Invalid checkpoint", db.getLastKnownCheckpoint(), checkpoint); 55 } 56 } | Popular Tags |