// Path: RxPractice/app/src/main/java/ru/samples/itis/rxpractice/tasks/RxJavaTask1.java
// public class RxJavaTask1 {
// 
//     /**
//      * TODO : implement this method
//      *
//      * This method takes list of strings and creates an observable of integers,
//      * that represents length of strings which contains letter 'r' (or 'R')
//      *
//      * @param list - list of string
//      * @return integer observable with strings length
//      */
//     @NonNull
//     public static Observable<Integer> task1Observable(@NonNull List<String> list) {
//         throw new RuntimeException("Observable not implemented exception");
//     }
// 
// }


import android.support.annotation.NonNull;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import java.security.SecureRandom;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Random;
import ru.samples.itis.rxpractice.tasks.RxJavaTask1;
import rx.Observable;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.fail;
package ru.samples.itis.rxpractice;






/**
 * @author Artur Vasilov
 */
@RunWith(JUnit4.class)
public class Task1Test {

    @Test
    public void testInput1() throws Exception {
        List<String> list = createList("Hello", "Reactive", "World");

// Path: RxPractice/app/src/main/java/ru/samples/itis/rxpractice/tasks/RxJavaTask1.java
// public class RxJavaTask1 {
// 
//     /**
//      * TODO : implement this method
//      *
//      * This method takes list of strings and creates an observable of integers,
//      * that represents length of strings which contains letter 'r' (or 'R')
//      *
//      * @param list - list of string
//      * @return integer observable with strings length
//      */
//     @NonNull
//     public static Observable<Integer> task1Observable(@NonNull List<String> list) {
//         throw new RuntimeException("Observable not implemented exception");
//     }
// 
// }


// Path: RxPractice/app/src/test/java/ru/samples/itis/rxpractice/Task1Test.java
import android.support.annotation.NonNull;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import java.security.SecureRandom;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Random;
import ru.samples.itis.rxpractice.tasks.RxJavaTask1;
import rx.Observable;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.fail;

package ru.samples.itis.rxpractice;






/**
 * @author Artur Vasilov
 */
@RunWith(JUnit4.class)
public class Task1Test {

    @Test
    public void testInput1() throws Exception {
        List<String> list = createList("Hello", "Reactive", "World");

        Observable<Integer> observable = RxJavaTask1.task1Observable(list);