文書の過去の版を表示しています。
Backup table data
あるテーブルに対して、transactionを行うクラスをテストする際、テーブルデータをバックアップする方法を紹介する。\ ここで、紹介するテストクラスは、Integration with TestNGで紹介した親クラスを継承していることを前提する。
以下に、ソースの一部分を示す
public class TestSomeTableTransactionService extends AbstractCustomTestCase { //table backup file private File backupFile; /* (non-Javadoc) * @see parent.AbstractCustomTestCase#prepareSpecific() */ @Override protected void prepareSpecific() throws Exception { IDatabaseConnection _connection = null; } }