// Path: src/main/java/org/junit/Assert.java
// public static void assertEquals(String message, Object expected,
//         Object actual) {
//     if (equalsRegardingNull(expected, actual)) {
//         return;
//     }
//     if (expected instanceof String && actual instanceof String) {
//         String cleanMessage = message == null ? "" : message;
//         throw new ComparisonFailure(cleanMessage, (String) expected,
//                 (String) actual);
//     } else {
//         failNotEquals(message, expected, actual);
//     }
// }
// 
// Path: src/main/java/org/junit/Assert.java
// public static void assertFalse(String message, boolean condition) {
//     assertTrue(message, !condition);
// }
// 
// Path: src/main/java/org/junit/Assert.java
// public static void assertTrue(String message, boolean condition) {
//     if (!condition) {
//         fail(message);
//     }
// }


import static org.hamcrest.CoreMatchers.hasItem;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.IsNot.not;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.junit.Assume.assumeTrue;
import static org.junit.experimental.results.PrintableResult.testResult;
import static org.junit.experimental.results.ResultMatchers.failureCountIs;
import static org.junit.experimental.results.ResultMatchers.isSuccessful;
import java.io.File;
import java.io.IOException;
import java.lang.reflect.Array;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.Set;
import java.util.SortedSet;
import java.util.TreeSet;
import org.junit.After;
import org.junit.AssumptionViolatedException;
import org.junit.Rule;
import org.junit.Test;

            File expectedFile = new File(folder.getRoot(), join(subfolder, filename));

            assertTrue(expectedFile.exists());
        }

        @Test
        public void testUsingTempFolderString() throws IOException {
            String subfolder = "subfolder";
            String filename = "a.txt";
            // this uses newFolder(String), ensure that a single String works
            createdFiles[0] = folder.newFolder(subfolder);
            new File(createdFiles[0], filename).createNewFile();

            File expectedFile = new File(folder.getRoot(), join(subfolder, filename));

            assertTrue(expectedFile.exists());
        }

        @Test
        public void testUsingTempTreeFolders() throws IOException {
            String subfolder = "subfolder";
            String anotherfolder = "anotherfolder";
            String filename = "a.txt";

            createdFiles[0] = folder.newFolder(subfolder, anotherfolder);
            new File(createdFiles[0], filename).createNewFile();

            File expectedFile = new File(folder.getRoot(), join(subfolder, anotherfolder, filename));

// Path: src/main/java/org/junit/Assert.java
// public static void assertEquals(String message, Object expected,
//         Object actual) {
//     if (equalsRegardingNull(expected, actual)) {
//         return;
//     }
//     if (expected instanceof String && actual instanceof String) {
//         String cleanMessage = message == null ? "" : message;
//         throw new ComparisonFailure(cleanMessage, (String) expected,
//                 (String) actual);
//     } else {
//         failNotEquals(message, expected, actual);
//     }
// }
// 
// Path: src/main/java/org/junit/Assert.java
// public static void assertFalse(String message, boolean condition) {
//     assertTrue(message, !condition);
// }
// 
// Path: src/main/java/org/junit/Assert.java
// public static void assertTrue(String message, boolean condition) {
//     if (!condition) {
//         fail(message);
//     }
// }


// Path: src/test/java/org/junit/rules/TempFolderRuleTest.java
import static org.hamcrest.CoreMatchers.hasItem;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.IsNot.not;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.junit.Assume.assumeTrue;
import static org.junit.experimental.results.PrintableResult.testResult;
import static org.junit.experimental.results.ResultMatchers.failureCountIs;
import static org.junit.experimental.results.ResultMatchers.isSuccessful;
import java.io.File;
import java.io.IOException;
import java.lang.reflect.Array;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.Set;
import java.util.SortedSet;
import java.util.TreeSet;
import org.junit.After;
import org.junit.AssumptionViolatedException;
import org.junit.Rule;
import org.junit.Test;


            File expectedFile = new File(folder.getRoot(), join(subfolder, filename));

            assertTrue(expectedFile.exists());
        }

        @Test
        public void testUsingTempFolderString() throws IOException {
            String subfolder = "subfolder";
            String filename = "a.txt";
            // this uses newFolder(String), ensure that a single String works
            createdFiles[0] = folder.newFolder(subfolder);
            new File(createdFiles[0], filename).createNewFile();

            File expectedFile = new File(folder.getRoot(), join(subfolder, filename));

            assertTrue(expectedFile.exists());
        }

        @Test
        public void testUsingTempTreeFolders() throws IOException {
            String subfolder = "subfolder";
            String anotherfolder = "anotherfolder";
            String filename = "a.txt";

            createdFiles[0] = folder.newFolder(subfolder, anotherfolder);
            new File(createdFiles[0], filename).createNewFile();

            File expectedFile = new File(folder.getRoot(), join(subfolder, anotherfolder, filename));

            assertTrue(expectedFile.exists());