From fcdc407c7eca342b07c85123d1c5a82441f47550 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Manuel=20Carrasco=20Mo=C3=B1ino?= Date: Tue, 3 Dec 2013 09:48:52 +0100 Subject: [PATCH] Formatting --- .../query/client/deferred/DeferredTest.java | 42 ++++++++++++------- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/gwtquery-core/src/test/java/com/google/gwt/query/client/deferred/DeferredTest.java b/gwtquery-core/src/test/java/com/google/gwt/query/client/deferred/DeferredTest.java index 9c7f16ef..096e31bd 100644 --- a/gwtquery-core/src/test/java/com/google/gwt/query/client/deferred/DeferredTest.java +++ b/gwtquery-core/src/test/java/com/google/gwt/query/client/deferred/DeferredTest.java @@ -376,27 +376,37 @@ public class DeferredTest extends GWTTestCase { public void testFunctionDeferredCache() { - FunctionDeferred cachedFunction = new FunctionDeferred() {protected void f(Deferred dfd) { + FunctionDeferred cachedFunction = new FunctionDeferred() { + protected void f(Deferred dfd) { dfd.resolve(deferredData); - }}; + } + }; - Function setDeferredDataToTrue = new Function(){public void f() { - deferredData = true; - }}; + Function setDeferredDataToTrue = new Function(){ + public void f() { + deferredData = true; + } + }; - Function setDeferredDataToFalse = new Function(){public void f() { - deferredData = false; - }}; + Function setDeferredDataToFalse = new Function() { + public void f() { + deferredData = false; + } + }; - Function assertDeferredDataIsFalse = new Function(){public void f() { - Boolean data = arguments(0); - assertFalse(data); - }}; + Function assertDeferredDataIsFalse = new Function() { + public void f() { + Boolean data = arguments(0); + assertFalse(data); + } + }; - Function assertDeferredDataIsTrue = new Function(){public void f() { - Boolean data = arguments(0); - assertTrue(data); - }}; + Function assertDeferredDataIsTrue = new Function() { + public void f() { + Boolean data = arguments(0); + assertTrue(data); + } + }; when(setDeferredDataToTrue, cachedFunction.withCache(CacheType.ALL)) .always(setDeferredDataToFalse) -- 2.39.5