diff options
author | Manuel Carrasco Moñino <manuel.carrasco.m@gmail.com> | 2013-12-03 09:48:52 +0100 |
---|---|---|
committer | Manuel Carrasco Moñino <manuel.carrasco.m@gmail.com> | 2013-12-03 09:48:52 +0100 |
commit | fcdc407c7eca342b07c85123d1c5a82441f47550 (patch) | |
tree | 189bfa26496b377543cd35e4eb62be288d7dd934 | |
parent | f7119204c7717ec7f396079df182f111f7f35b2b (diff) | |
download | gwtquery-fcdc407c7eca342b07c85123d1c5a82441f47550.tar.gz gwtquery-fcdc407c7eca342b07c85123d1c5a82441f47550.zip |
Formatting
-rw-r--r-- | gwtquery-core/src/test/java/com/google/gwt/query/client/deferred/DeferredTest.java | 42 |
1 files 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) |