// Path: cubano-concordion/src/main/java/org/concordion/cubano/framework/resource/CloseListener.java
// public interface CloseListener {
//     default void beforeClosing(Closeable resource) {};
//     default void afterClosing(Closeable resource) {};
// }
// 
// Path: cubano-concordion/src/main/java/org/concordion/cubano/framework/resource/ResourceScope.java
// public enum ResourceScope {
//     /**
//      * Per Concordion Specification Example
//      */
//     EXAMPLE,
//     /**
//      * Per Concordion Specification
//      */
//     SPECIFICATION,
//     /**
//      * Per Concordion Suite, where a Suite equates to the top-level test that is invoked (normally using JUnit).
//      * Other tests that are invoked from the top-level test using the Run Command are part of the suite.
//      * Other tests invoked directly (from JUnit) form independent suites.
//      */
//     SUITE;
// }


import static org.junit.Assert.*;
import static org.hamcrest.Matchers.*;
import static org.mockito.Mockito.*;
import org.concordion.cubano.framework.resource.CloseListener;
import org.concordion.cubano.framework.resource.ResourceScope;
import org.junit.Test;
import org.mockito.InOrder;
import java.io.Closeable;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
package org.concordion.cubano.framework;




public class ConcordionBaseTest {

    private final TestResource resource0 = new TestResource("0");
    private final TestResource resource1 = new TestResource("1");
    private final TestResource resource2 = new TestResource("2");
    private final TestResource resource3 = new TestResource("3");
    private final TestResource resource4 = new TestResource("4");
    private final TestResource resource5 = new TestResource("5");
    private ConcordionBase test1 = new ConcordionBase() {};
    private List<String> closedResources = new ArrayList<>();
    private CloseListener listener = spy(CloseListener.class);

    private class TestResource implements Closeable {
        private final String name;

        private TestResource(String name) {
            this.name = name;
        }

        @Override
        public void close() throws IOException {
            closedResources.add(name);
        }
    }


    @Test
    public void isRegisteredReturnsFalseIfNotRegistered() {
// Path: cubano-concordion/src/main/java/org/concordion/cubano/framework/resource/CloseListener.java
// public interface CloseListener {
//     default void beforeClosing(Closeable resource) {};
//     default void afterClosing(Closeable resource) {};
// }
// 
// Path: cubano-concordion/src/main/java/org/concordion/cubano/framework/resource/ResourceScope.java
// public enum ResourceScope {
//     /**
//      * Per Concordion Specification Example
//      */
//     EXAMPLE,
//     /**
//      * Per Concordion Specification
//      */
//     SPECIFICATION,
//     /**
//      * Per Concordion Suite, where a Suite equates to the top-level test that is invoked (normally using JUnit).
//      * Other tests that are invoked from the top-level test using the Run Command are part of the suite.
//      * Other tests invoked directly (from JUnit) form independent suites.
//      */
//     SUITE;
// }


// Path: cubano-concordion/src/test/java/org/concordion/cubano/framework/ConcordionBaseTest.java
import static org.junit.Assert.*;
import static org.hamcrest.Matchers.*;
import static org.mockito.Mockito.*;
import org.concordion.cubano.framework.resource.CloseListener;
import org.concordion.cubano.framework.resource.ResourceScope;
import org.junit.Test;
import org.mockito.InOrder;
import java.io.Closeable;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

package org.concordion.cubano.framework;




public class ConcordionBaseTest {

    private final TestResource resource0 = new TestResource("0");
    private final TestResource resource1 = new TestResource("1");
    private final TestResource resource2 = new TestResource("2");
    private final TestResource resource3 = new TestResource("3");
    private final TestResource resource4 = new TestResource("4");
    private final TestResource resource5 = new TestResource("5");
    private ConcordionBase test1 = new ConcordionBase() {};
    private List<String> closedResources = new ArrayList<>();
    private CloseListener listener = spy(CloseListener.class);

    private class TestResource implements Closeable {
        private final String name;

        private TestResource(String name) {
            this.name = name;
        }

        @Override
        public void close() throws IOException {
            closedResources.add(name);
        }
    }


    @Test
    public void isRegisteredReturnsFalseIfNotRegistered() {
        assertFalse(test1.isRegistered(resource0, ResourceScope.SPECIFICATION));