20
20
import oracle .kubernetes .operator .utils .TestUtils ;
21
21
import org .junit .After ;
22
22
import org .junit .AfterClass ;
23
- import org .junit .BeforeClass ;
24
23
import org .junit .FixMethodOrder ;
25
24
import org .junit .Test ;
26
25
import org .junit .runners .MethodSorters ;
@@ -45,24 +44,13 @@ public class ITOperatorUpgrade extends BaseTest {
45
44
private Domain domain = null ;
46
45
private static Operator operator20 ;
47
46
48
- /**
49
- * This method gets called only once before any of the test methods are executed. It does the
50
- * initialization of the integration test properties defined in OperatorIT.properties and setting
51
- * the resultRoot, pvRoot and projectRoot attributes.
52
- *
53
- * @throws Exception
54
- */
55
- @ BeforeClass
56
- public static void staticPrepare () throws Exception {
47
+ private void setupOperatorAndDomain (String operatorGitRelease , String operatorRelease )
48
+ throws Exception {
49
+ logger .log (Level .INFO , "+++++++++++++++Beginning Test Setup+++++++++++++++++++++" );
57
50
if (!QUICKTEST ) {
58
51
initialize (APP_PROPS_FILE );
59
52
opUpgradeTmpDir = BaseTest .getResultDir () + "/operatorupgrade" ;
60
53
}
61
- }
62
-
63
- private void setupOperatorAndDomain (String operatorGitRelease , String operatorRelease )
64
- throws Exception {
65
- logger .log (Level .INFO , "+++++++++++++++Beginning Test Setup+++++++++++++++++++++" );
66
54
TestUtils .exec ("rm -rf " + Paths .get (opUpgradeTmpDir ).toString ());
67
55
Files .createDirectories (Paths .get (opUpgradeTmpDir ));
68
56
Map <String , Object > operatorMap = TestUtils .loadYaml (OPERATOR1_YAML );
0 commit comments