Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

import com.beust.jcommander.Parameter;
import com.beust.jcommander.Parameters;

import java.util.ArrayList;
import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

import com.beust.jcommander.Parameter;
import com.beust.jcommander.Parameters;

import java.util.ArrayList;
import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

import com.beust.jcommander.Parameter;
import com.beust.jcommander.Parameters;

import java.util.ArrayList;
import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

import com.beust.jcommander.Parameter;
import com.beust.jcommander.Parameters;

import java.util.ArrayList;
import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

import com.beust.jcommander.Parameter;
import com.beust.jcommander.Parameters;

import java.util.ArrayList;
import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

import com.beust.jcommander.Parameter;
import com.beust.jcommander.Parameters;

import java.util.ArrayList;
import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@
* #L%
*/

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintStream;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public abstract class CLITestRoot {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@

package org.graphwalker.cli;

import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.core.Is.is;

import java.io.IOException;
import org.junit.Assert;
import org.junit.Test;

import java.io.IOException;

import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.core.Is.is;


public class CheckTest extends CLITestRoot {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@

package org.graphwalker.cli;

import static org.hamcrest.core.Is.is;

import java.io.IOException;
import org.junit.Assert;
import org.junit.Test;

import java.io.IOException;

import static org.hamcrest.core.Is.is;


public class ConvertFilesTest extends CLITestRoot {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,15 @@

package org.graphwalker.cli;

import org.junit.Assert;
import org.junit.Test;

import java.util.Arrays;

import static org.hamcrest.Matchers.hasItems;
import static org.hamcrest.Matchers.not;
import static org.hamcrest.core.Is.is;

import java.util.Arrays;
import org.junit.Assert;
import org.junit.Test;


public class CorrectModelsTest extends CLITestRoot {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
* #L%
*/

import static org.hamcrest.core.Is.is;

import org.junit.Assert;
import org.junit.Test;

import static org.hamcrest.core.Is.is;


public class IOErrorsTest extends CLITestRoot {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
* #L%
*/

import static org.hamcrest.core.Is.is;

import org.junit.Assert;
import org.junit.Test;

import static org.hamcrest.core.Is.is;


public class IncorrectModelsTest extends CLITestRoot {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@

package org.graphwalker.cli;

import static org.hamcrest.Matchers.containsInAnyOrder;
import static org.hamcrest.core.Is.is;
import org.junit.Assert;
import org.junit.Test;

import java.io.IOException;
import java.util.Arrays;
import org.junit.Assert;
import org.junit.Test;

import static org.hamcrest.Matchers.containsInAnyOrder;
import static org.hamcrest.core.Is.is;


public class MethodsTest extends CLITestRoot {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@

package org.graphwalker.cli;

import org.junit.Test;

import java.io.IOException;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import org.junit.Test;


public class OnlineTest extends CLITestRoot {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@

package org.graphwalker.cli;

import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.core.Is.is;

import java.io.IOException;
import org.junit.Assert;
import org.junit.Test;

import java.io.IOException;

import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.core.Is.is;


public class PrintHelpTest extends CLITestRoot {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@

package org.graphwalker.cli;

import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.core.Is.is;

import java.io.IOException;
import org.junit.Assert;
import org.junit.Test;

import java.io.IOException;

import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.core.Is.is;


public class PrintVersionTest extends CLITestRoot {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,15 @@

package org.graphwalker.cli;

import static org.hamcrest.Matchers.containsInAnyOrder;
import static org.hamcrest.core.Is.is;
import org.junit.Assert;
import org.junit.Test;

import java.io.IOException;
import java.util.Arrays;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;

import static org.hamcrest.Matchers.containsInAnyOrder;
import static org.hamcrest.core.Is.is;


public class RequirementsTest extends CLITestRoot {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@

package org.graphwalker.cli;

import static org.hamcrest.core.Is.is;

import java.io.IOException;
import org.junit.Assert;
import org.junit.Test;

import java.io.IOException;

import static org.hamcrest.core.Is.is;


public class SourceTest extends CLITestRoot {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import org.graphwalker.core.machine.Context;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.stream.Collectors;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import org.graphwalker.core.machine.Context;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.stream.Collectors;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@

import org.graphwalker.core.machine.Context;

import static org.graphwalker.core.model.Edge.RuntimeEdge;

/**
* <h1>EdgeCoverage</h1>
* The EdgeCoverage stop condition is fulfilled when the percentage of visited edges in the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.script.ScriptException;

/**
* @author Nils Olsson
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.graphwalker.core.condition;

import org.graphwalker.core.model.Edge;
import org.graphwalker.core.model.Vertex;

public class PredefinedPathStopCondition extends StopConditionBase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import org.graphwalker.core.machine.Context;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.stream.Collectors;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@

import java.util.*;

import static org.graphwalker.core.common.Objects.*;
import static org.graphwalker.core.common.Objects.isNotNull;
import static org.graphwalker.core.common.Objects.isNull;
import static org.graphwalker.core.model.Edge.RuntimeEdge;
import static org.graphwalker.core.model.Vertex.RuntimeVertex;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
*/

import org.graphwalker.core.common.Objects;
import org.graphwalker.core.machine.MachineException;

import java.util.*;
import java.util.stream.Collectors;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@
* #L%
*/

import static org.graphwalker.core.model.Edge.RuntimeEdge;
import static org.graphwalker.core.model.Model.RuntimeModel;
import static org.graphwalker.core.model.Vertex.RuntimeVertex;

import org.graphwalker.core.model.Edge;
import org.graphwalker.core.model.Model;
import org.graphwalker.core.model.Vertex;

import static org.graphwalker.core.model.Edge.RuntimeEdge;
import static org.graphwalker.core.model.Model.RuntimeModel;
import static org.graphwalker.core.model.Vertex.RuntimeVertex;

public abstract class Models {

private static final Vertex VERTEX_A = new Vertex()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,14 @@
* #L%
*/

import org.graphwalker.core.machine.TestExecutionContext;
import org.graphwalker.core.model.*;
import org.junit.Test;

import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertThat;

import org.graphwalker.core.machine.TestExecutionContext;
import org.graphwalker.core.model.Edge;
import org.graphwalker.core.model.Element;
import org.graphwalker.core.model.Model;
import org.graphwalker.core.model.Path;
import org.graphwalker.core.model.Vertex;
import org.junit.Test;

/**
* @author Nils Olsson
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
* #L%
*/

import static org.junit.Assert.assertNotNull;

import org.graphwalker.core.model.Classification;
import org.graphwalker.core.model.ClassificationTree;
import org.junit.Test;

import static org.junit.Assert.assertNotNull;

/**
* @author Kristian Karl
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@
* #L%
*/

import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;

import org.graphwalker.core.machine.TestExecutionContext;
import org.graphwalker.core.model.Edge;
import org.graphwalker.core.model.Model;
import org.graphwalker.core.model.Vertex;
import org.junit.Test;

import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;

/**
* @author Nils Olsson
*/
Expand Down
Loading