@@ -67,15 +67,9 @@ public static void setUp() throws IOException {
6767 }
6868 }
6969
70- @ Test
71- @ Order (1 )
72- public void whenInitializingAWSService_thenNotNull () {
73- assertNotNull (cloudFrontClient );
74- System .out .println ("Test 1 passed" );
75- }
7670
7771 @ Test
78- @ Order (2 )
72+ @ Order (1 )
7973 public void CreateFunction () {
8074 functionName = "FunctionUploadedByJava" + UUID .randomUUID ();
8175 funcARN = CreateFunction .createNewFunction (cloudFrontClient , functionName , functionFileName );
@@ -84,40 +78,30 @@ public void CreateFunction() {
8478 }
8579
8680 @ Test
87- @ Order (3 )
81+ @ Order (2 )
8882 public void DescribeFunction () {
8983 eTagVal = DescribeFunction .describeFunction (cloudFrontClient , functionName );
9084 assertTrue (!eTagVal .isEmpty ());
9185 System .out .println ("Test 3 passed" );
9286 }
9387
9488 @ Test
95- @ Order (4 )
89+ @ Order (3 )
9690 public void ListFunctions (){
9791 ListFunctions .listAllFunctions (cloudFrontClient );
9892 System .out .println ("Test 4 passed" );
9993 }
10094
10195 @ Test
102- @ Order (5 )
96+ @ Order (4 )
10397 public void GetDistribution () {
10498 GetDistributions .getCFDistributions (cloudFrontClient );
10599 System .out .println ("Test 5 passed" );
106100 }
107101
108-
109102 @ Test
110- @ Order (6 )
111- public void ModifyDistribution () {
112-
113- ModifyDistribution .modDistribution (cloudFrontClient , distributionId );
114- System .out .println ("Test 6 passed" );
115- }
116-
117- @ Test
118- @ Order (7 )
103+ @ Order (5 )
119104 public void DeleteFunction (){
120-
121105 DeleteFunction .deleteSpecificFunction (cloudFrontClient , functionName , eTagVal );
122106 System .out .println ("Test 7 passed" );
123107 }
0 commit comments