// Path: testsrc/de/neuland/firefly/TestUtils.java
// public class TestUtils {
//     public static void unwrapException(RuntimeException e) throws Throwable {
//         if (e.getCause() != null) {
//             throw e.getCause();
//         } else {
//             throw e;
//         }
//     }
// 
//     public static <T> T loadXML(Class<T> type, String xmlFile) {
//         T result = XMLUtil.loadXML(type, getFileFromClasspath(xmlFile));
//         assertNotNull(result);
//         return result;
//     }
// 
//     public static File getFileFromClasspath(String filename) {
//         URL currentClassPathFolder = TestUtils.class.getClassLoader().getResource("");
//         File result = new File(currentClassPathFolder.getFile(), filename);
//         assertTrue(result.exists());
//         return result;
//     }
// }
// 
// Path: testsrc/de/neuland/firefly/TestUtils.java
// public static File getFileFromClasspath(String filename) {
//     URL currentClassPathFolder = TestUtils.class.getClassLoader().getResource("");
//     File result = new File(currentClassPathFolder.getFile(), filename);
//     assertTrue(result.exists());
//     return result;
// }


import de.neuland.firefly.TestUtils;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.runners.MockitoJUnitRunner;
import java.io.File;
import java.net.URL;
import static de.neuland.firefly.TestUtils.getFileFromClasspath;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
package de.neuland.firefly.changes;





@RunWith(MockitoJUnitRunner.class)
public class ChangeFactoryTest {
    private ChangeFactory changeFactory = new ChangeFactory();
    private File changeList = getFileFromClasspath("resources/changes/v1/changeList.xml");
// Path: testsrc/de/neuland/firefly/TestUtils.java
// public class TestUtils {
//     public static void unwrapException(RuntimeException e) throws Throwable {
//         if (e.getCause() != null) {
//             throw e.getCause();
//         } else {
//             throw e;
//         }
//     }
// 
//     public static <T> T loadXML(Class<T> type, String xmlFile) {
//         T result = XMLUtil.loadXML(type, getFileFromClasspath(xmlFile));
//         assertNotNull(result);
//         return result;
//     }
// 
//     public static File getFileFromClasspath(String filename) {
//         URL currentClassPathFolder = TestUtils.class.getClassLoader().getResource("");
//         File result = new File(currentClassPathFolder.getFile(), filename);
//         assertTrue(result.exists());
//         return result;
//     }
// }
// 
// Path: testsrc/de/neuland/firefly/TestUtils.java
// public static File getFileFromClasspath(String filename) {
//     URL currentClassPathFolder = TestUtils.class.getClassLoader().getResource("");
//     File result = new File(currentClassPathFolder.getFile(), filename);
//     assertTrue(result.exists());
//     return result;
// }


// Path: testsrc/de/neuland/firefly/changes/ChangeFactoryTest.java
import de.neuland.firefly.TestUtils;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.runners.MockitoJUnitRunner;
import java.io.File;
import java.net.URL;
import static de.neuland.firefly.TestUtils.getFileFromClasspath;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

package de.neuland.firefly.changes;





@RunWith(MockitoJUnitRunner.class)
public class ChangeFactoryTest {
    private ChangeFactory changeFactory = new ChangeFactory();
    private File changeList = getFileFromClasspath("resources/changes/v1/changeList.xml");
    private File changeFile = getFileFromClasspath("resources/changes/v1/changeDescription.xml");