commit | 5c6975e4b1597a103858c1c648630a8450f5c0d9 | [log] [tgz] |
---|---|---|
author | Roman C. Coedo <romancoedo@gmail.com> | Thu Jun 19 01:27:24 2014 +0200 |
committer | Andrew Gaul <gaul@apache.org> | Wed Jun 18 17:14:06 2014 -0700 |
tree | cf4213d801f2907092b925137a7a8006c2407f15 | |
parent | 09b23def1aa8eb8f5268d621a70914f8f9456757 [diff] |
JCLOUDS-457: Clean up for GlacierClientMockTest. GlacierClientMockTest was growing uncontrollably. This commit is an attempt to fix this problem. The first measure taken moves the duplicated strings to constants and the JSON response bodies to resource files. In addition, some repeated code was moved to static classes, where they can be reused. We also use @BeforeTest and @AfterTest to make instances of the MockWebServer and shut them down for each test.