// Path: androidunittest/src/main/java/com/github/florent37/androidunittest/states/ActivityState.java
// public enum ActivityState {
//     //reverse ordered to prevent illegal forward reference
//     DESTROYED(null),
//     STOPPED(ActivityState.DESTROYED),
//     PAUSED(ActivityState.STOPPED),
//     RESUMED(ActivityState.PAUSED),
//     STARTED(ActivityState.RESUMED),
//     CREATED(ActivityState.STARTED);
// 
// 
//     private ActivityState mNext;
// 
//     ActivityState(ActivityState next) {
//         mNext = next;
//     }
// 
//     public ActivityState next() {
//         return mNext;
//     }
// 
//     /**
//      * Check wether the given ActivityState is before or at least the same element as this instance
//      *
//      * commonly used to check if the previous state can be call
//      * for instance, checking if Resume can be used before Paused, it will returns true
//      * whereas, testing destroy against resume will return false
//      * @param state
//      * @return
//      */
//     public boolean isLowerOrEquals(@NonNull ActivityState state) {
//         return ordinal() >= state.ordinal(); //since we are in the reverse order
//         //it is not <= but =>
//     }
// }


import com.github.florent37.androidunittest.states.ActivityState;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
package com.github.florent37.androidunittest.annotations;



/**
 * Created by florentchampigny on 07/05/2016.
 */
@Retention(RetentionPolicy.RUNTIME)
public @interface RActivity {
// Path: androidunittest/src/main/java/com/github/florent37/androidunittest/states/ActivityState.java
// public enum ActivityState {
//     //reverse ordered to prevent illegal forward reference
//     DESTROYED(null),
//     STOPPED(ActivityState.DESTROYED),
//     PAUSED(ActivityState.STOPPED),
//     RESUMED(ActivityState.PAUSED),
//     STARTED(ActivityState.RESUMED),
//     CREATED(ActivityState.STARTED);
// 
// 
//     private ActivityState mNext;
// 
//     ActivityState(ActivityState next) {
//         mNext = next;
//     }
// 
//     public ActivityState next() {
//         return mNext;
//     }
// 
//     /**
//      * Check wether the given ActivityState is before or at least the same element as this instance
//      *
//      * commonly used to check if the previous state can be call
//      * for instance, checking if Resume can be used before Paused, it will returns true
//      * whereas, testing destroy against resume will return false
//      * @param state
//      * @return
//      */
//     public boolean isLowerOrEquals(@NonNull ActivityState state) {
//         return ordinal() >= state.ordinal(); //since we are in the reverse order
//         //it is not <= but =>
//     }
// }


// Path: androidunittest/src/main/java/com/github/florent37/androidunittest/annotations/RActivity.java
import com.github.florent37.androidunittest.states.ActivityState;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

package com.github.florent37.androidunittest.annotations;



/**
 * Created by florentchampigny on 07/05/2016.
 */
@Retention(RetentionPolicy.RUNTIME)
public @interface RActivity {
    ActivityState state() default ActivityState.CREATED;