Skip to content

Commit

Permalink
FIX attempt refs #25 : Removed unused code in tests (TestUploadedFile…
Browse files Browse the repository at this point in the history
… is no longer a ApplicationTest)
  • Loading branch information
Nathaël NOGUÈS committed Jul 21, 2016
1 parent 6891e91 commit 5d32c1f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 26 deletions.
7 changes: 2 additions & 5 deletions avek-gui/src/main/resources/fxml/parameters/parameters.fxml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>

<?import fr.axonic.avek.gui.view.parameters.list.ParametersCategory?>
<?import javafx.scene.control.ScrollPane?>
<?import javafx.scene.control.TextArea?>
<?import javafx.scene.control.SplitPane?>
<?import fr.axonic.avek.gui.view.parameters.FileListView?>
<?import fr.axonic.avek.gui.view.parameters.list.ParametersCategory?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.control.Label?>
<fx:root xmlns:fx="http://javafx.com/fxml" type="javafx.scene.control.SplitPane" orientation="VERTICAL">
<SplitPane orientation="HORIZONTAL">
<ScrollPane>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import fr.axonic.avek.model.base.AString;
import org.junit.Test;

import java.util.*;
import java.util.ArrayList;

import static org.junit.Assert.assertEquals;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
import org.junit.Test;
import org.testfx.framework.junit.ApplicationTest;

import java.io.*;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.PrintWriter;
import java.nio.file.FileAlreadyExistsException;
import java.nio.file.Files;
import java.util.ArrayList;
Expand All @@ -24,23 +27,7 @@
/**
* Created by Nathaël N on 20/07/16.
*/
public class TestUploadedFile extends ApplicationTest {
static {
System.setProperty("testfx.headless", "true");
System.setProperty("prism.text", "t2k");
System.setProperty("prism.order", "sw");
System.setProperty("testfx.robot", "glass");
System.setProperty("java.awt.headless", "true");
}

@Override
public void start(Stage stage) throws Exception {
Parent root = MainController.getRoot();
Scene scene = new Scene(root, 200, 200);
stage.setScene(scene);
stage.show();
}

public class TestUploadedFile {
@Before
public void before() throws IOException {
File f = new File("./temp/test.txt"); // 31 bytes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package fr.axonic.avek.gui.view.results;


import com.sun.rmi.rmid.ExecPermission;
import fr.axonic.avek.gui.model.sample.ExampleState;
import fr.axonic.avek.model.base.ARangedEnum;
import fr.axonic.avek.model.verification.exception.VerificationException;
Expand Down

0 comments on commit 5d32c1f

Please sign in to comment.