From 1c8e09264c716950b5cfda635bbd65d0d3b4912a Mon Sep 17 00:00:00 2001 From: Andrei Savu Date: Wed, 14 Mar 2012 14:49:32 +0200 Subject: [PATCH] Use enum for protocol assertion in live tests --- .../org/jclouds/cloudstack/features/FirewallClientLiveTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/FirewallClientLiveTest.java b/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/FirewallClientLiveTest.java index 836e41405f..83e1d4888d 100644 --- a/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/FirewallClientLiveTest.java +++ b/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/FirewallClientLiveTest.java @@ -109,7 +109,7 @@ public class FirewallClientLiveTest extends BaseCloudStackClientLiveTest { assertEquals(portForwardingRule.getIPAddressId(), ip.getId()); assertEquals(portForwardingRule.getVirtualMachineId(), vm.getId()); assertEquals(portForwardingRule.getPublicPort(), 22); - assertEquals(portForwardingRule.getProtocol(), "tcp"); + assertEquals(portForwardingRule.getProtocol(), PortForwardingRule.Protocol.TCP); checkPortForwardingRule(portForwardingRule); checkSSH(new IPSocket(ip.getIPAddress(), 22));