コード例 #1
0
  @BeforeClass
  @Override
  protected void springTestContextPrepareTestInstance() throws Exception {
    artifactoryHomeBoundTest = createArtifactoryHomeTest();
    artifactoryHomeBoundTest.bindArtifactoryHome();

    super.springTestContextPrepareTestInstance();

    try (Connection connection = jdbcHelper.getDataSource().getConnection()) {
      DbTestUtils.refreshOrRecreateSchema(connection, storageProperties.getDbType());
    }
    TestUtils.invokeMethodNoArgs(dbService, "initializeIdGenerator");
  }
コード例 #2
0
 public void run(IHookCallBack callBack, ITestResult testResult) {
   super.run(callBack, testResult);
   this.hook(callBack, testResult);
 }