Package com.tinkerpop.frames

Source Code of com.tinkerpop.frames.FramedTransactionalGraphTest

package com.tinkerpop.frames;

import org.junit.Test;
import org.mockito.Mockito;

import com.tinkerpop.blueprints.TransactionalGraph;

public class FramedTransactionalGraphTest {
  @Test
  public void testTransactions() {

    TransactionalGraph t = Mockito.mock(TransactionalGraph.class);
    FramedTransactionalGraph<TransactionalGraph> g = new FramedTransactionalGraph<TransactionalGraph>(t, new FramedGraphConfiguration());
    g.commit();
    Mockito.verify(t).commit();
    Mockito.reset(t);
   
    g.rollback();
    Mockito.verify(t).rollback();
  }
}
TOP

Related Classes of com.tinkerpop.frames.FramedTransactionalGraphTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.