package javax.observer.tck;

import javax.observer.Observable;
import javax.observer.Subscription;
import java.util.Objects;

/**
 * 
 * @author Thomas Zimmermann (https://github.com/zimmi)
 */
public class CheckLongObservable
{

    public static void checkLongObservableBasicMethods(final Observable<Long> observable)
    {
        Objects.requireNonNull(observable);
        observable.getValue();
        observable.value();
        observable.value().orElse(0L);

        Subscription willChangeSubscription = observable.onWillChange(e -> new RuntimeException("FAIL"));
        willChangeSubscription.unsubscribe();

        Subscription changedSubscription = observable.onChanged(e -> new RuntimeException("FAIL"));
        changedSubscription.unsubscribe();
    }

}

@@ -462,32 +462,38 @@
 e(0L);%0A%0A        
+final 
 Subscription wil
@@ -629,16 +629,22 @@
         
+final 
 Subscrip

make every local variable final