Skip to content

Commit

Permalink
Removed the plain FXMLLoader test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver-Loeffler committed Aug 29, 2021
1 parent 7dbae30 commit 42f17b1
Showing 1 changed file with 2 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,15 @@
*/
package com.oracle.javafx.scenebuilder.kit.fxom;

import static org.junit.Assert.*;
import static org.junit.Assert.assertThrows;
import static org.junit.Assert.assertTrue;

import java.io.IOException;
import java.io.InputStream;
import java.net.URL;

import org.junit.Test;

import javafx.fxml.FXMLLoader;

public class FXOMDocumentTest {

@Test
public void that_IOexception_is_thrown_in_case_FXMLLoader_error() throws Exception {
URL resource = getClass().getResource("BrokenByUserData.fxml");
Expand All @@ -51,16 +48,4 @@ public void that_IOexception_is_thrown_in_case_FXMLLoader_error() throws Excepti
String message = t.getMessage();
assertTrue(message.startsWith("javafx.fxml.LoadException:"));
}

@Test
public void that_FXMLLoader_causes_error() throws Exception {
InputStream is = getClass().getResourceAsStream("BrokenByUserData.fxml");

FXMLLoader loader = new FXMLLoader();

loader.load(is);

fail("WTF!");
}

}

0 comments on commit 42f17b1

Please sign in to comment.