From c3a6ecf757c66a18f4d09a9ea9bbce64e050ec6f Mon Sep 17 00:00:00 2001 From: vijaykiran Date: Mon, 18 Jun 2012 10:52:26 +0200 Subject: [PATCH] Test for minDisk --- .../jclouds/compute/domain/TemplateBuilderSpecTest.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/compute/src/test/java/org/jclouds/compute/domain/TemplateBuilderSpecTest.java b/compute/src/test/java/org/jclouds/compute/domain/TemplateBuilderSpecTest.java index d988f1b1d9..7d888adcc6 100644 --- a/compute/src/test/java/org/jclouds/compute/domain/TemplateBuilderSpecTest.java +++ b/compute/src/test/java/org/jclouds/compute/domain/TemplateBuilderSpecTest.java @@ -23,6 +23,7 @@ import static org.jclouds.compute.domain.TemplateBuilderSpec.parse; import static org.jclouds.compute.options.TemplateOptions.Builder.overrideLoginCredentials; import static org.jclouds.compute.options.TemplateOptions.Builder.overrideLoginUser; import static org.testng.Assert.assertEquals; +import static org.testng.Assert.assertNotEquals; import static org.testng.Assert.assertNull; import static org.testng.Assert.fail; @@ -187,6 +188,14 @@ public class TemplateBuilderSpecTest { assertTemplateBuilderEquivalence(templateBuilders.get().minRam(10), templateBuilders.get().from(spec)); } + public void testParse_minDiskIsNotEqual() { + TemplateBuilderSpec spec1 = parse("minDisk=10"); + TemplateBuilderSpec spec2 = parse("minDisk=20"); + assertTemplateBuilderEquivalence(templateBuilders.get().minDisk(10), templateBuilders.get().from(spec1)); + assertTemplateBuilderEquivalence(templateBuilders.get().minDisk(20), templateBuilders.get().from(spec2)); + assertNotEquals(spec1.minDisk, spec2.minDisk); + } + public void testParse_minRamRepeated() { try { parse("minRam=10, minRam=20");