// Path: src/test/java/com/github/vbauer/caesar/basic/BasicTest.java
// @RunWith(BlockJUnit4ClassRunner.class)
// public abstract class BasicTest {
// 
//     protected final boolean checkUtilConstructorContract(final Class<?>... utilClasses) {
//         Assert.assertTrue(utilClasses.length > 0);
// 
//         PrivateConstructorChecker
//             .forClasses(utilClasses)
//             .expectedTypeOfException(UnsupportedOperationException.class)
//             .check();
// 
//         return true;
//     }
// 
// }


import com.github.vbauer.caesar.basic.BasicTest;
import org.junit.Assert;
import org.junit.Test;
import java.util.concurrent.atomic.AtomicBoolean;
package com.github.vbauer.caesar.callback;



/**
 * @author Vladislav Bauer
 */

public class AsyncCallbackAdapterTest extends BasicTest {

    @Test
    public void testCallback() {
        final AtomicBoolean onSuccess = new AtomicBoolean(false);
        final AtomicBoolean onFailure = new AtomicBoolean(false);

        final AsyncCallbackAdapter<Object> callback = new AsyncCallbackAdapter<Object>() {
            @Override
            public void onSuccess(final Object result) {
                super.onSuccess(result);
                onSuccess.set(true);
            }

            @Override
            public void onFailure(final Throwable caught) {
                super.onFailure(caught);
                onFailure.set(true);
            }
        };

        callback.onSuccess(null);
// Path: src/test/java/com/github/vbauer/caesar/basic/BasicTest.java
// @RunWith(BlockJUnit4ClassRunner.class)
// public abstract class BasicTest {
// 
//     protected final boolean checkUtilConstructorContract(final Class<?>... utilClasses) {
//         Assert.assertTrue(utilClasses.length > 0);
// 
//         PrivateConstructorChecker
//             .forClasses(utilClasses)
//             .expectedTypeOfException(UnsupportedOperationException.class)
//             .check();
// 
//         return true;
//     }
// 
// }


// Path: src/test/java/com/github/vbauer/caesar/callback/AsyncCallbackAdapterTest.java
import com.github.vbauer.caesar.basic.BasicTest;
import org.junit.Assert;
import org.junit.Test;
import java.util.concurrent.atomic.AtomicBoolean;

package com.github.vbauer.caesar.callback;



/**
 * @author Vladislav Bauer
 */

public class AsyncCallbackAdapterTest extends BasicTest {

    @Test
    public void testCallback() {
        final AtomicBoolean onSuccess = new AtomicBoolean(false);
        final AtomicBoolean onFailure = new AtomicBoolean(false);

        final AsyncCallbackAdapter<Object> callback = new AsyncCallbackAdapter<Object>() {
            @Override
            public void onSuccess(final Object result) {
                super.onSuccess(result);
                onSuccess.set(true);
            }

            @Override
            public void onFailure(final Throwable caught) {
                super.onFailure(caught);
                onFailure.set(true);
            }
        };

        callback.onSuccess(null);
        callback.onFailure(null);