* You are expected to implement the {@link Application#run(CommandLine)} method
*
* @author jcechace
*/
public class Application {
@Parameter(names = "--help", help = true)
private boolean showUsage = false;
/**
* Application entry point
*
* @param args command line arguments of the application
*/
public static void main(String[] args) {
Application app = new Application();
CommandLine cli = new CommandLine(app);
cli.parseArguments(args);
if (app.showUsage) {
cli.showUsage();
} else {
app.run(cli);
}
}
/**
* Application runtime logic
*
* @param cli command line interface
*/
private void run(CommandLine cli) {
throw new UnsupportedOperationException("Remove this line and implement the method");
}
}
2021-hw02-text-bbf2bb899c3b7f6b9175ba7e6cd469b02a3cf479/src/test/ 0000775 0000000 0000000 00000000000 14041506656 0022655 5 ustar 00root root 0000000 0000000 2021-hw02-text-bbf2bb899c3b7f6b9175ba7e6cd469b02a3cf479/src/test/java/ 0000775 0000000 0000000 00000000000 14041506656 0023576 5 ustar 00root root 0000000 0000000 2021-hw02-text-bbf2bb899c3b7f6b9175ba7e6cd469b02a3cf479/src/test/java/cz/ 0000775 0000000 0000000 00000000000 14041506656 0024212 5 ustar 00root root 0000000 0000000 2021-hw02-text-bbf2bb899c3b7f6b9175ba7e6cd469b02a3cf479/src/test/java/cz/muni/ 0000775 0000000 0000000 00000000000 14041506656 0025162 5 ustar 00root root 0000000 0000000 2021-hw02-text-bbf2bb899c3b7f6b9175ba7e6cd469b02a3cf479/src/test/java/cz/muni/fi/ 0000775 0000000 0000000 00000000000 14041506656 0025560 5 ustar 00root root 0000000 0000000 2021-hw02-text-bbf2bb899c3b7f6b9175ba7e6cd469b02a3cf479/src/test/java/cz/muni/fi/pb162/ 0000775 0000000 0000000 00000000000 14041506656 0026412 5 ustar 00root root 0000000 0000000 2021-hw02-text-bbf2bb899c3b7f6b9175ba7e6cd469b02a3cf479/src/test/java/cz/muni/fi/pb162/hw02/ 0000775 0000000 0000000 00000000000 14041506656 0027172 5 ustar 00root root 0000000 0000000 2021-hw02-text-bbf2bb899c3b7f6b9175ba7e6cd469b02a3cf479/src/test/java/cz/muni/fi/pb162/hw02/.gitkeep0000664 0000000 0000000 00000000000 14041506656 0030611 0 ustar 00root root 0000000 0000000 FileLoaderTest.java 0000664 0000000 0000000 00000001726 14041506656 0032632 0 ustar 00root root 0000000 0000000 2021-hw02-text-bbf2bb899c3b7f6b9175ba7e6cd469b02a3cf479/src/test/java/cz/muni/fi/pb162/hw02 package cz.muni.fi.pb162.hw02;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.io.IOException;
import java.net.URISyntaxException;
import java.util.List;
import static cz.muni.fi.pb162.hw02.TestUtils.resourcePath;
import static org.assertj.core.api.Assertions.assertThat;
class FileLoaderTest {
private FileLoader fileLoader;
@BeforeEach
void setup() {
fileLoader = new FileLoader();
}
@Test
void shouldReadSingleLineFileAsLines() throws URISyntaxException, IOException {
List