mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-24 15:35:34 -04:00
Introduce viewfx.view.support.CachingViewLoader
... and move view.fxml package to view.support.fxml
This commit is contained in:
parent
a2c98d9ea3
commit
444948f3ca
11 changed files with 86 additions and 42 deletions
|
@ -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());
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue