brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henev...@apache.org
Subject [14/50] brooklyn-server git commit: JcloudsLocationTest: fix indent
Date Mon, 01 Feb 2016 17:49:18 GMT
JcloudsLocationTest: fix indent


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-server/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-server/commit/2fc1caf0
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-server/tree/2fc1caf0
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-server/diff/2fc1caf0

Branch: refs/heads/0.6.0
Commit: 2fc1caf06acfcb46bcf99d19d60df35244607335
Parents: be4ab78
Author: Aled Sage <aled.sage@gmail.com>
Authored: Wed Nov 6 11:07:33 2013 +0000
Committer: Aled Sage <aled.sage@gmail.com>
Committed: Wed Nov 6 11:46:46 2013 +0000

----------------------------------------------------------------------
 .../location/jclouds/JcloudsLocationTest.java   | 63 ++++++++++----------
 1 file changed, 32 insertions(+), 31 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-server/blob/2fc1caf0/locations/jclouds/src/test/java/brooklyn/location/jclouds/JcloudsLocationTest.java
----------------------------------------------------------------------
diff --git a/locations/jclouds/src/test/java/brooklyn/location/jclouds/JcloudsLocationTest.java
b/locations/jclouds/src/test/java/brooklyn/location/jclouds/JcloudsLocationTest.java
index fbdd9b1..b859a23 100644
--- a/locations/jclouds/src/test/java/brooklyn/location/jclouds/JcloudsLocationTest.java
+++ b/locations/jclouds/src/test/java/brooklyn/location/jclouds/JcloudsLocationTest.java
@@ -73,40 +73,41 @@ public class JcloudsLocationTest implements JcloudsLocationConfig {
     }
     
     public static class BailOutWithTemplateJcloudsLocation extends JcloudsLocation {
-         ConfigBag lastConfigBag;
-         Template template;
+        ConfigBag lastConfigBag;
+        Template template;
 
-         public BailOutWithTemplateJcloudsLocation() {
+        public BailOutWithTemplateJcloudsLocation() {
             super();
-         }
-        
-         public BailOutWithTemplateJcloudsLocation(Map<?, ?> conf) {
-             super(conf);
-         }
-         
-         @Override
-         protected Template buildTemplate(ComputeService computeService, ConfigBag config)
{
-             template = super.buildTemplate(computeService, config);
-             
-             lastConfigBag = config;
-             throw BAIL_OUT_FOR_TESTING;
-         }
-         protected synchronized void tryObtainAndCheck(Map<?,?> flags, Predicate<ConfigBag>
test) {
-             try {
-                 obtain(flags);
-             } catch (Throwable e) {
-                 if (e==BAIL_OUT_FOR_TESTING) {
-                     test.apply(lastConfigBag);
-                 } else {
-                     throw Exceptions.propagate(e);
-                 }
-             }
-         }
+        }
+
+        public BailOutWithTemplateJcloudsLocation(Map<?, ?> conf) {
+            super(conf);
+        }
+
+        @Override
+        protected Template buildTemplate(ComputeService computeService, ConfigBag config)
{
+            template = super.buildTemplate(computeService, config);
+
+            lastConfigBag = config;
+            throw BAIL_OUT_FOR_TESTING;
+        }
+
+        protected synchronized void tryObtainAndCheck(Map<?,?> flags, Predicate<ConfigBag>
test) {
+            try {
+                obtain(flags);
+            } catch (Throwable e) {
+                if (e == BAIL_OUT_FOR_TESTING) {
+                    test.apply(lastConfigBag);
+                } else {
+                    throw Exceptions.propagate(e);
+                }
+            }
+        }
          
-         public Template getTemplate() {
-             return template;
-         }
-     }
+        public Template getTemplate() {
+            return template;
+        }
+    }
     
     protected BailOutJcloudsLocation newSampleBailOutJcloudsLocationForTesting() {
         return managementContext.getLocationManager().createLocation(LocationSpec.create(BailOutJcloudsLocation.class)


Mime
View raw message