diff options
author | Jon Bratseth <bratseth@oath.com> | 2018-06-01 13:02:05 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@oath.com> | 2018-06-01 13:02:05 +0200 |
commit | 6a48337dddea59910c0abd8bab3539bfc91fde88 (patch) | |
tree | e105fbcf792c6bc3998616897fbcf935f53f192a /config-model | |
parent | 122608d88e4eb2e156df8938211b76e930a1774b (diff) |
Test internalRedeploy propagation in config responses
Diffstat (limited to 'config-model')
-rw-r--r-- | config-model/src/test/java/com/yahoo/config/model/ApplicationDeployTest.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/config-model/src/test/java/com/yahoo/config/model/ApplicationDeployTest.java b/config-model/src/test/java/com/yahoo/config/model/ApplicationDeployTest.java index 177e332e86b..d3e8136cdec 100644 --- a/config-model/src/test/java/com/yahoo/config/model/ApplicationDeployTest.java +++ b/config-model/src/test/java/com/yahoo/config/model/ApplicationDeployTest.java @@ -301,27 +301,27 @@ public class ApplicationDeployTest { File tmp = Files.createTempDir(); String appPkg = TESTDIR + "app1"; IOUtils.copyDirectory(new File(appPkg), tmp); - final DeployData deployData = new DeployData("foo", "bar", "baz", 13l, false, 1337l, 3l); + DeployData deployData = new DeployData("foo", "bar", "baz", 13l, false, 1337l, 3l); FilesApplicationPackage app = FilesApplicationPackage.fromFileWithDeployData(tmp, deployData); app.writeMetaData(); FilesApplicationPackage newApp = FilesApplicationPackage.fromFileWithDeployData(tmp, deployData); ApplicationMetaData meta = newApp.getMetaData(); assertThat(meta.getDeployedByUser(), is("foo")); assertThat(meta.getDeployPath(), is("bar")); - assertThat(meta.getDeployTimestamp(), is(13l)); - assertThat(meta.getGeneration(), is(1337l)); - assertThat(meta.getPreviousActiveGeneration(), is(3l)); - final String checkSum = meta.getCheckSum(); + assertThat(meta.getDeployTimestamp(), is(13L)); + assertThat(meta.getGeneration(), is(1337L)); + assertThat(meta.getPreviousActiveGeneration(), is(3L)); + String checkSum = meta.getCheckSum(); assertNotNull(checkSum); assertTrue((new File(tmp, "hosts.xml")).delete()); FilesApplicationPackage app2 = FilesApplicationPackage.fromFileWithDeployData(tmp, deployData); - final String app2CheckSum = app2.getMetaData().getCheckSum(); + String app2CheckSum = app2.getMetaData().getCheckSum(); assertThat(app2CheckSum, is(not(checkSum))); assertTrue((new File(tmp, "files/foo.json")).delete()); FilesApplicationPackage app3 = FilesApplicationPackage.fromFileWithDeployData(tmp, deployData); - final String app3CheckSum = app3.getMetaData().getCheckSum(); + String app3CheckSum = app3.getMetaData().getCheckSum(); assertThat(app3CheckSum, is(not(app2CheckSum))); } |