@@ -0,0 +1,3240 @@
+import software.amazon.awssdk.services.cloudfront.CloudFrontClient;%0Aimport org.junit.jupiter.api.*;%0Aimport static org.junit.jupiter.api.Assertions.assertNotNull;%0A/*%0A   Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.%0A   SPDX-License-Identifier: Apache-2.0%0A*/%0A%0A%0Aimport software.amazon.awssdk.regions.Region;%0Aimport java.io.*;%0Aimport java.util.*;%0Aimport com.example.cloudfront.*;%0Aimport static org.junit.jupiter.api.Assertions.*;%0A%0A@TestInstance(TestInstance.Lifecycle.PER_METHOD)%0A@TestMethodOrder(MethodOrderer.OrderAnnotation.class)%0Apublic class CloudFrontTest %7B%0A%0A    private static CloudFrontClient cloudFrontClient ;%0A    private static Region region;%0A    private static String functionName = %22%22;%0A    private static String filePath = %22%22;%0A    private static String funcARN = %22%22;%0A    private static String eTagVal = %22%22;%0A    private static String id = %22%22;%0A%0A%0A    @BeforeAll%0A    public static void setUp() throws IOException %7B%0A%0A        // Run tests on Real AWS Resources%0A        region = Region.AWS_GLOBAL;%0A        cloudFrontClient = CloudFrontClient.builder()%0A                .region(region)%0A                .build();%0A        try (InputStream input = CloudFrontTest.class.getClassLoader().getResourceAsStream(%22config.properties%22)) %7B%0A%0A            Properties prop = new Properties();%0A%0A            if (input == null) %7B%0A                System.out.println(%22Sorry, unable to find config.properties%22);%0A                return;%0A            %7D%0A%0A            //load a properties file from class path, inside static method%0A            prop.load(input);%0A%0A            // Populate the data members required for all tests%0A            functionName = prop.getProperty(%22functionName%22);%0A            filePath= prop.getProperty(%22filePath%22);%0A            id = prop.getProperty(%22id%22);%0A%0A        %7D catch (IOException ex) %7B%0A            ex.printStackTrace();%0A        %7D%0A    %7D%0A%0A    @Test%0A    @Order(1)%0A    public void whenInitializingAWSService_thenNotNull() %7B%0A        assertNotNull(cloudFrontClient);%0A        System.out.println(%22Test 1 passed%22);%0A    %7D%0A%0A    @Test%0A    @Order(2)%0A    public void CreateFunction() %7B%0A        funcARN =  CreateFunction.createNewFunction(cloudFrontClient, functionName, filePath);%0A        assertTrue(!funcARN.isEmpty());%0A        System.out.println(%22Test 2 passed%22);%0A    %7D%0A%0A    @Test%0A    @Order(3)%0A    public void DescribeFunction() %7B%0A        eTagVal = DescribeFunction.describeSinFunction(cloudFrontClient, functionName);%0A        assertTrue(!eTagVal.isEmpty());%0A        System.out.println(%22Test 3 passed%22);%0A    %7D%0A%0A    @Test%0A    @Order(4)%0A    public void ListFunctions()%7B%0A        ListFunctions.listAllFunctions(cloudFrontClient);%0A        System.out.println(%22Test 4 passed%22);%0A    %7D%0A%0A    @Test%0A    @Order(5)%0A   public void GetDistrubutions() %7B%0A        GetDistrubutions.getCFDistrubutions(cloudFrontClient);%0A        System.out.println(%22Test 5 passed%22);%0A   %7D%0A%0A%0A    @Test%0A    @Order(6)%0A   public void ModifyDistrution() %7B%0A%0A        ModifyDistribution.modDistribution(cloudFrontClient, id);%0A        System.out.println(%22Test 6 passed%22);%0A   %7D%0A%0A    @Test%0A    @Order(7)%0A   public void DeleteFunction()%7B%0A%0A       DeleteFunction.deleteSpecificFunction(cloudFrontClient, functionName, eTagVal);%0A       System.out.println(%22Test 7 passed%22);%0A    %7D%0A%7D%0A%0A

Create CloudFrontTest.java