示例#1
0
  @Test
  @InstallFile("samples/doublePanel.xml")
  public void testMultiplePanels() throws Exception {
    installerController.buildInstallation();

    HelloPanel firstHelloPanel = (HelloPanel) installerContainer.getComponent("42");
    assertThat(firstHelloPanel.getMetadata().getPanelId(), Is.is("42"));

    HelloPanel secondHelloPanel = (HelloPanel) installerContainer.getComponent("34");
    assertThat(secondHelloPanel.getMetadata().getPanelId(), Is.is("34"));
  }
示例#2
0
  @Test
  @InstallFile("samples/panelconfiguration.xml")
  public void testPanelConfiguration() throws Exception {
    installerController.buildInstallation();

    HelloPanel helloPanel = (HelloPanel) installerContainer.getComponent("hellopanel");
    assertThat(helloPanel.getMetadata().getConfiguration("config1"), Is.is("value1"));
    assertThat(helloPanel.getMetadata().getConfiguration("config2"), Is.is("value2"));
  }