Introduce viewfx.view.support.CachingViewLoader

... and move view.fxml package to view.support.fxml
This commit is contained in:
Chris Beams 2014-11-24 08:57:22 +01:00
parent a2c98d9ea3
commit 444948f3ca
No known key found for this signature in database
GPG key ID: 3D214F8F5BC5ED73
11 changed files with 86 additions and 42 deletions

View file

@ -29,7 +29,7 @@ import java.net.MalformedURLException;
import java.util.ResourceBundle;
import viewfx.view.fxml.FxmlViewLoader;
import viewfx.view.support.fxml.FxmlViewLoader;
import viewfx.view.support.guice.GuiceViewFactory;
import javafx.application.Application;
@ -81,11 +81,11 @@ public class ViewLoaderTests {
@Test(expected = BitsquareException.class)
public void loadingBogusFxmlResourceShouldThrow() throws MalformedURLException {
new FxmlViewLoader(viewFactory, resourceBundle).load(Navigation.Item.BOGUS.getFxmlUrl(), false);
new FxmlViewLoader(viewFactory, resourceBundle).load(Navigation.Item.BOGUS.getFxmlUrl());
}
@Test
public void loadingValidFxmlResourceShouldNotThrow() {
new FxmlViewLoader(viewFactory, resourceBundle).load(Navigation.Item.ACCOUNT.getFxmlUrl(), false);
new FxmlViewLoader(viewFactory, resourceBundle).load(Navigation.Item.ACCOUNT.getFxmlUrl());
}
}