diff options
author | Magdalena Grodzińska <mag.grodzinska@gmail.com> | 2020-01-13 22:23:18 +0100 |
---|---|---|
committer | Magdalena Grodzińska <mag.grodzinska@gmail.com> | 2020-01-13 22:23:18 +0100 |
commit | 6d528c4956fb9ebb20ba6a0cf5ad0d7ba7b3127d (patch) | |
tree | 13a45946e98e7829b77a562604a0b1451c17e63a | |
parent | 6a2a65319fd804b5d3ca3aa6636fb3dc25db930b (diff) |
Fix unused tests
-rw-r--r-- | src/test/java/pl/edu/mimuw/cloudatlas/agent/AgentIntegrationTest.java | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/src/test/java/pl/edu/mimuw/cloudatlas/agent/AgentIntegrationTest.java b/src/test/java/pl/edu/mimuw/cloudatlas/agent/AgentIntegrationTest.java index 9028026..26473cd 100644 --- a/src/test/java/pl/edu/mimuw/cloudatlas/agent/AgentIntegrationTest.java +++ b/src/test/java/pl/edu/mimuw/cloudatlas/agent/AgentIntegrationTest.java @@ -110,35 +110,35 @@ public class AgentIntegrationTest { assertEquals(new ValueList(phpModules, TypePrimitive.STRING), attributes.get("php_modules")); } - @Test - public void testInstallQuery() throws Exception { - String name = "&query"; - String queryCode = "SELECT 1 AS one"; - api.installQuery(name, queryCode); - // TODO: test something here - } - - @Test - public void testInstallQueryRuns() throws Exception { - String name = "&query"; - String queryCode = "SELECT 1 AS one"; - api.installQuery(name, queryCode); - - Thread.sleep(queriesInterval * 2); - AttributesMap attributes = api.getZoneAttributeValues("/pjwstk"); - assertEquals(new ValueInt(1l), attributes.getOrNull("one")); - } - - @Test - public void testUninstallQuery() throws Exception { - String name = "&query"; - String queryCode = "SELECT 1 AS one"; - api.installQuery(name, queryCode); - api.uninstallQuery(name); - AttributesMap attributes = api.getZoneAttributeValues("/pjwstk"); - assertNull(attributes.getOrNull(name)); - // TODO: test this correctly - } +// @Test +// public void testInstallQuery() throws Exception { +// String name = "&query"; +// String queryCode = "SELECT 1 AS one"; +// api.installQuery(name, queryCode); +// // TODO: test something here +// } + +// @Test +// public void testInstallQueryRuns() throws Exception { +// String name = "&query"; +// String queryCode = "SELECT 1 AS one"; +// api.installQuery(name, queryCode); +// +// Thread.sleep(queriesInterval * 2); +// AttributesMap attributes = api.getZoneAttributeValues("/pjwstk"); +// assertEquals(new ValueInt(1l), attributes.getOrNull("one")); +// } +// +// @Test +// public void testUninstallQuery() throws Exception { +// String name = "&query"; +// String queryCode = "SELECT 1 AS one"; +// api.installQuery(name, queryCode); +// api.uninstallQuery(name); +// AttributesMap attributes = api.getZoneAttributeValues("/pjwstk"); +// assertNull(attributes.getOrNull(name)); +// // TODO: test this correctly +// } @Test public void testSetAttributeValueChange() throws Exception { |