@@ -0,0 +1,1832 @@
+/**%0A * Copyright (c) 2015, German Neuroinformatics Node (G-Node)%0A *%0A * All rights reserved.%0A *%0A * Redistribution and use in source and binary forms, with or without%0A * modification, are permitted under the terms of the BSD License. See%0A * LICENSE file in the root of the Project.%0A */%0A%0Apackage org.g_node.crawler.LKTLogbook;%0A%0Aimport java.util.Arrays;%0Aimport java.util.HashSet;%0Aimport java.util.Set;%0Aimport org.apache.commons.cli.CommandLine;%0Aimport org.apache.commons.cli.Options;%0Aimport org.junit.Test;%0Aimport static org.assertj.core.api.Assertions.assertThat;%0A%0A/**%0A * Unit tests for the %7B@link LKTLogController%7D class.%0A *%0A * @author Michael Sonntag (sonntag@bio.lmu.de)%0A */%0Apublic class LKTLogControllerTest %7B%0A%0A    private LKTLogController logCtrl = new LKTLogController(new LKTLogParser());%0A%0A    /**%0A     * Tests for the %7B@link CommandLine%7D %7B@link Options%7D of the RDF to RDF converter tool.%0A     * @throws Exception%0A     */%0A    @Test%0A    public void testOptions() throws Exception %7B%0A        Set%3CString%3E testRegToolsSet = new HashSet%3C%3E(Arrays.asList(%22one%22, %22two%22));%0A        Options checkOpt = this.logCtrl.options(testRegToolsSet);%0A%0A        assertThat(checkOpt.getOptions().size()).isEqualTo(4);%0A%0A        assertThat(checkOpt.hasOption(%22-i%22)).isTrue();%0A        assertThat(checkOpt.hasLongOption(%22in-file%22)).isTrue();%0A        assertThat(checkOpt.getOption(%22-i%22).isRequired()).isTrue();%0A%0A        assertThat(checkOpt.hasOption(%22-o%22)).isTrue();%0A        assertThat(checkOpt.hasLongOption(%22out-file%22)).isTrue();%0A        assertThat(checkOpt.getOption(%22-o%22).isRequired()).isFalse();%0A%0A        assertThat(checkOpt.hasOption(%22-f%22)).isTrue();%0A        assertThat(checkOpt.hasLongOption(%22out-format%22)).isTrue();%0A        assertThat(checkOpt.getOption(%22-f%22).isRequired()).isFalse();%0A%0A        assertThat(checkOpt.hasOption(%22-h%22)).isTrue();%0A    %7D%0A%0A%7D%0A

add LKT tool cli options test