コード例 #1
0
 public void accept(DbStructureVisitor visitor) {
   try (Transaction tx = db.beginTx()) {
     try (Statement statement = bridge.get()) {
       showStructure(statement, visitor);
     }
     tx.success();
   }
 }
コード例 #2
0
 @Before
 public void setup() {
   when(bridge.get()).thenReturn(stmt);
 }