// Path: domain/src/test/java/domain/common/BaseTest.java
// public abstract class BaseTest {
//     protected final static int WAIT = 50;
//     @Mock protected UI UIMock;
//     @Mock protected ObserveOn observeOnMock;
//     @Mock protected SubscribeOn subscribeOnMock;
// 
//     @Before public void setUp() {
//         MockitoAnnotations.initMocks(this);
//         when(observeOnMock.getScheduler()).thenReturn(Schedulers.newThread());
//         when(subscribeOnMock.getScheduler()).thenReturn(Schedulers.newThread());
//     }
// }
// 
// Path: domain/src/main/java/domain/foundation/helpers/ParserException.java
// public class ParserException extends UseCase<String> {
//     private Throwable throwable;
// 
//     @Inject public ParserException(UI ui) {
//         super(ui);
//     }
// 
//     public ParserException with(Throwable throwable) {
//         this.throwable = throwable;
//         return this;
//     }
// 
//     @Override public Observable<String> react() {
//         String message = throwable.getMessage();
// 
//         if (throwable instanceof CompositeException) {
//             message += System.getProperty("line.separator");
//             CompositeException compositeException = (CompositeException) throwable;
// 
//             for (Throwable exception : compositeException.getExceptions()) {
//                 String exceptionName = exception.getClass().getSimpleName();
//                 String exceptionMessage = exception.getMessage() != null ? exception.getMessage() : "";
//                 message += exceptionName + " -> " + exceptionMessage + System.getProperty("line.separator");
//             }
//         }
// 
//         return Observable.just(message);
//     }
// }


import org.junit.Test;
import domain.common.BaseTest;
import domain.foundation.helpers.ParserException;
import rx.Observable;
import rx.observers.TestSubscriber;
import rx.schedulers.Schedulers;
package domain.foundation;



/**
 * Created by victor on 01/02/16.
 */
public class PresenterSubscriptionsTest extends BaseTest {
    private Presenter presenterUT;

    @Override public void setUp() {
        super.setUp();
// Path: domain/src/test/java/domain/common/BaseTest.java
// public abstract class BaseTest {
//     protected final static int WAIT = 50;
//     @Mock protected UI UIMock;
//     @Mock protected ObserveOn observeOnMock;
//     @Mock protected SubscribeOn subscribeOnMock;
// 
//     @Before public void setUp() {
//         MockitoAnnotations.initMocks(this);
//         when(observeOnMock.getScheduler()).thenReturn(Schedulers.newThread());
//         when(subscribeOnMock.getScheduler()).thenReturn(Schedulers.newThread());
//     }
// }
// 
// Path: domain/src/main/java/domain/foundation/helpers/ParserException.java
// public class ParserException extends UseCase<String> {
//     private Throwable throwable;
// 
//     @Inject public ParserException(UI ui) {
//         super(ui);
//     }
// 
//     public ParserException with(Throwable throwable) {
//         this.throwable = throwable;
//         return this;
//     }
// 
//     @Override public Observable<String> react() {
//         String message = throwable.getMessage();
// 
//         if (throwable instanceof CompositeException) {
//             message += System.getProperty("line.separator");
//             CompositeException compositeException = (CompositeException) throwable;
// 
//             for (Throwable exception : compositeException.getExceptions()) {
//                 String exceptionName = exception.getClass().getSimpleName();
//                 String exceptionMessage = exception.getMessage() != null ? exception.getMessage() : "";
//                 message += exceptionName + " -> " + exceptionMessage + System.getProperty("line.separator");
//             }
//         }
// 
//         return Observable.just(message);
//     }
// }


// Path: domain/src/test/java/domain/foundation/PresenterSubscriptionsTest.java
import org.junit.Test;
import domain.common.BaseTest;
import domain.foundation.helpers.ParserException;
import rx.Observable;
import rx.observers.TestSubscriber;
import rx.schedulers.Schedulers;

package domain.foundation;



/**
 * Created by victor on 01/02/16.
 */
public class PresenterSubscriptionsTest extends BaseTest {
    private Presenter presenterUT;

    @Override public void setUp() {
        super.setUp();
        presenterUT = new Presenter(null, subscribeOnMock, observeOnMock, new ParserException(UIMock), UIMock) {};