// Path: src/test/java/org/testapp/suite/TestAppSuite.java
// public class TestAppSuite implements HavaRunnerSuite<String> {
//     @Override
//     public String suiteObject() {
//         return "hello";
//     }
// 
//     @Override
//     public void afterSuite() {
//     }
// }
// 
// Path: src/test/java/com/github/havarunner/TestHelper.java
// public static Failure runAndRecordFailure(HavaRunner havaRunner) {
//     final AtomicReference<Failure> expectedFailure = new AtomicReference<>();
//     RunNotifier runNotifier = new RunNotifier() {
//         @Override
//         public void fireTestFailure(Failure failure) {
//             expectedFailure.set(failure);
//         }
//     };
//     run(havaRunner, runNotifier);
//     return expectedFailure.get();
// }


import com.github.havarunner.HavaRunner;
import com.github.havarunner.annotation.PartOf;
import com.github.havarunner.exception.SuiteMemberDoesNotBelongToSuitePackage;
import org.junit.Test;
import org.junit.runner.notification.Failure;
import org.testapp.suite.TestAppSuite;
import static com.github.havarunner.TestHelper.runAndRecordFailure;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertEquals;
package org.testapp;



public class InvalidSuiteConfigTest {

    @Test
    public void suite_members_must_be_within_the_same_package_as_the_suite() {
// Path: src/test/java/org/testapp/suite/TestAppSuite.java
// public class TestAppSuite implements HavaRunnerSuite<String> {
//     @Override
//     public String suiteObject() {
//         return "hello";
//     }
// 
//     @Override
//     public void afterSuite() {
//     }
// }
// 
// Path: src/test/java/com/github/havarunner/TestHelper.java
// public static Failure runAndRecordFailure(HavaRunner havaRunner) {
//     final AtomicReference<Failure> expectedFailure = new AtomicReference<>();
//     RunNotifier runNotifier = new RunNotifier() {
//         @Override
//         public void fireTestFailure(Failure failure) {
//             expectedFailure.set(failure);
//         }
//     };
//     run(havaRunner, runNotifier);
//     return expectedFailure.get();
// }


// Path: src/test/java/org/testapp/InvalidSuiteConfigTest.java
import com.github.havarunner.HavaRunner;
import com.github.havarunner.annotation.PartOf;
import com.github.havarunner.exception.SuiteMemberDoesNotBelongToSuitePackage;
import org.junit.Test;
import org.junit.runner.notification.Failure;
import org.testapp.suite.TestAppSuite;
import static com.github.havarunner.TestHelper.runAndRecordFailure;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertEquals;

package org.testapp;



public class InvalidSuiteConfigTest {

    @Test
    public void suite_members_must_be_within_the_same_package_as_the_suite() {
        Failure failure = runAndRecordFailure(new HavaRunner(InvalidSuiteMember.class));