@@ -0,0 +1,3058 @@
+import com.example.glacier.*;%0Aimport org.junit.jupiter.api.*;%0Aimport software.amazon.awssdk.regions.Region;%0Aimport software.amazon.awssdk.services.glacier.GlacierClient;%0Aimport java.io.*;%0Aimport java.nio.file.Path;%0Aimport java.nio.file.Paths;%0Aimport java.util.*;%0Aimport java.util.concurrent.TimeUnit;%0A%0Aimport static org.junit.jupiter.api.Assertions.*;%0A%0A@TestInstance(TestInstance.Lifecycle.PER_METHOD)%0A@TestMethodOrder(MethodOrderer.OrderAnnotation.class)%0Apublic class AWSGlacierServiceIntegrationTest %7B%0A%0A    private static GlacierClient glacier;%0A    private static String vaultName=%22%22;%0A    private static String strPath =%22%22;%0A    private static String downloadVault=%22%22;%0A    private static String accountId=%22%22;%0A    private static String archiveId=%22%22;%0A    private static String emptyVault=%22%22;%0A%0A    @BeforeAll%0A    public static void setUp() throws IOException %7B%0A%0A        glacier = GlacierClient.builder()%0A                .region(Region.US_EAST_1)%0A                .build();%0A%0A        try (InputStream input = AWSGlacierServiceIntegrationTest.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            vaultName = prop.getProperty(%22vaultName%22);%0A            strPath = prop.getProperty(%22strPath%22);%0A            downloadVault= prop.getProperty(%22downloadVault%22);%0A            accountId= prop.getProperty(%22accountId%22);%0A            emptyVault= prop.getProperty(%22emptyVault%22);%0A%0A        %7D catch (IOException ex) %7B%0A            ex.printStackTrace();%0A        %7D%0A    %7D%0A%0A    @Test%0A    @Order(1)%0A    public void whenInitializingAWSS3Service_thenNotNull() %7B%0A        assertNotNull(glacier);%0A        System.out.println(%22Test 1 passed%22);%0A    %7D%0A%0A    @Test%0A    @Order(2)%0A    public void CreateVault() %7B%0A        CreateVault.createGlacierVault(glacier, vaultName);%0A    %7D%0A%0A    @Test%0A    @Order(3)%0A    public void DescribeVault() %7B%0A%0A       DescribeVault.describeGlacierVault(glacier, vaultName);%0A     %7D%0A%0A    @Test%0A    @Order(4)%0A    public void ListVaults() %7B%0A%0A        ListVaults.listAllVault(glacier);%0A     %7D%0A%0A    @Test%0A    @Order(5)%0A    public void UploadArchive() %7B%0A%0A        File myFile = new File(strPath);%0A        Path path = Paths.get(strPath);%0A        archiveId =  UploadArchive.uploadContent(glacier,path,vaultName,myFile);%0A        assertTrue(!archiveId.isEmpty());%0A%0A    %7D%0A%0A    @Test%0A    @Order(6)%0A    public void ArchiveDownload() %7B%0A%0A       ArchiveDownload.createJob( glacier, downloadVault, accountId);%0A%0A    %7D%0A%0A%0A    @Test%0A    @Order(7)%0A    public void DeleteArchive() %7B%0A        DeleteArchive.deleteGlacierArchive(glacier, vaultName, accountId, archiveId);%0A    %7D%0A%0A%0A    @Test%0A    @Order(8)%0A    public void DeleteVault() %7B%0A%0A       DeleteVault.deleteGlacierVault(glacier, emptyVault);%0A     %7D%0A%0A%7D%0A

Create AWSGlacierServiceIntegrationTest.java