diff options
author | Martin Polden <mpolden@mpolden.no> | 2021-03-18 15:38:37 +0100 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2021-03-18 15:38:37 +0100 |
commit | 36eb3e232b50eaa3fb687e6a049214633759b5c6 (patch) | |
tree | a028f38c0ebb776c0b502907d8f4d69ab30e9747 /controller-api/src/test/java/com | |
parent | bf685b2e30e26218cf6278a3d9f5321f1b9517e9 (diff) |
Remove unused DeployOptions
Diffstat (limited to 'controller-api/src/test/java/com')
-rw-r--r-- | controller-api/src/test/java/com/yahoo/vespa/hosted/controller/api/identifiers/DeployOptionsTest.java | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/controller-api/src/test/java/com/yahoo/vespa/hosted/controller/api/identifiers/DeployOptionsTest.java b/controller-api/src/test/java/com/yahoo/vespa/hosted/controller/api/identifiers/DeployOptionsTest.java deleted file mode 100644 index a97fde0a6d6..00000000000 --- a/controller-api/src/test/java/com/yahoo/vespa/hosted/controller/api/identifiers/DeployOptionsTest.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -package com.yahoo.vespa.hosted.controller.api.identifiers; - -import com.fasterxml.jackson.databind.DeserializationFeature; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.fasterxml.jackson.datatype.jdk8.Jdk8Module; -import com.yahoo.component.Version; -import com.yahoo.vespa.hosted.controller.api.application.v4.model.DeployOptions; -import org.junit.Test; - -import java.io.IOException; -import java.util.Optional; - -import static org.junit.Assert.assertEquals; - -/** - * @author mortent - */ -public class DeployOptionsTest { - - @Test - public void it_serializes_version() throws IOException { - DeployOptions options = new DeployOptions(false, Optional.of(new Version("6.98.227")), false, false); - final ObjectMapper objectMapper = new ObjectMapper() - .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false) - .registerModule(new Jdk8Module()); - - String string = objectMapper.writeValueAsString(options); - assertEquals("{\"deployDirectly\":false,\"vespaVersion\":\"6.98.227\",\"ignoreValidationErrors\":false,\"deployCurrentVersion\":false}", string); - } -} |