Coverage report

  %line %branch
mnemosyne.archiver.TransientArchiver
100% 
100% 

 1  
 /*
 2  
  * Copyright 2004 Charles Blaxland
 3  
  *
 4  
  * Licensed under the Apache License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  *     http://www.apache.org/licenses/LICENSE-2.0
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package mnemosyne.archiver;
 17  
 
 18  
 import mnemosyne.core.PersistentRoot;
 19  
 import mnemosyne.core.Transaction;
 20  
 import org.apache.commons.logging.Log;
 21  
 import org.apache.commons.logging.LogFactory;
 22  
 
 23  
 /**
 24  
  * An implementation of the archiver that does not persist to durable storage.
 25  
  * This might be useful for demos, testing, or an in memory cache that requires
 26  
  * ACID properties.
 27  
  *
 28  
  * @version $Id: TransientArchiver.java,v 1.1.1.1 2004/08/07 06:40:55 charlesblaxland Exp $
 29  
  */
 30  1
 public class TransientArchiver implements Archiver
 31  
 {
 32  2
     private static final Log log = LogFactory.getLog(TransientArchiver.class);
 33  
 
 34  
     public PersistentRoot loadLatest() throws ArchiverException
 35  
     {
 36  2
         log.info("Persistent root reloaded");
 37  2
         return null;
 38  
     }
 39  
 
 40  
     public void saveSnapshot(PersistentRoot root) throws ArchiverException
 41  
     {
 42  1
         log.info("Snapshot saved");
 43  1
     }
 44  
 
 45  
     public void saveTransaction(Transaction transaction) throws ArchiverException
 46  
     {
 47  1
         log.info("Transaction saved");
 48  1
     }
 49  
 }

This report is generated by jcoverage, Maven and Maven JCoverage Plugin.