|
@@ -138,15 +138,14 @@ public class TestContainerDataYaml {
|
|
|
KeyValueContainerData kvData = (KeyValueContainerData) ContainerDataYaml
|
|
|
.readContainerFile(file);
|
|
|
fail("testIncorrectContainerFile failed");
|
|
|
- } catch (IllegalStateException ex) {
|
|
|
- GenericTestUtils.assertExceptionContains("Unexpected " +
|
|
|
- "ContainerLifeCycleState", ex);
|
|
|
+ } catch (IllegalArgumentException ex) {
|
|
|
+ GenericTestUtils.assertExceptionContains("No enum constant", ex);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
@Test
|
|
|
- public void testCheckBackWardCompatabilityOfContainerFile() throws
|
|
|
+ public void testCheckBackWardCompatibilityOfContainerFile() throws
|
|
|
IOException {
|
|
|
// This test is for if we upgrade, and then .container files added by new
|
|
|
// server will have new fields added to .container file, after a while we
|
|
@@ -178,7 +177,7 @@ public class TestContainerDataYaml {
|
|
|
|
|
|
} catch (Exception ex) {
|
|
|
ex.printStackTrace();
|
|
|
- fail("testCheckBackWardCompatabilityOfContainerFile failed");
|
|
|
+ fail("testCheckBackWardCompatibilityOfContainerFile failed");
|
|
|
}
|
|
|
}
|
|
|
|