Examples of TestPanelSource


Examples of org.apache.wicket.util.tester.TestPanelSource

public class TestCategoryListPanel extends TestBase {

  @Test
  @SuppressWarnings("serial")
  public void testCategoryListPanelRendering() {
    tester.startPanel(new TestPanelSource() {
      public Panel getTestPanel(String panelId) {
        try {
          return new CategoryListPanel(panelId, "Categories");
        } catch (SimalRepositoryException e) {
          fail(e.getMessage());
View Full Code Here

Examples of org.apache.wicket.util.tester.TestPanelSource

public class TestProjectListPanel extends TestBase {
 
  @Before
  @SuppressWarnings("serial")
  public void setUpPanel() {
    tester.startPanel(new TestPanelSource() {
      public Panel getTestPanel(String panelId) {
        try {
          return new ProjectListPanel(panelId, 7);
        } catch (SimalRepositoryException e) {
          fail(e.getMessage());
View Full Code Here

Examples of org.apache.wicket.util.tester.TestPanelSource

public class TestSourceRepositoriesPanel extends TestBase {

  @Test
  @SuppressWarnings("serial")
  public void testRenderPanel() {
    tester.startPanel(new TestPanelSource() {
      public Panel getTestPanel(String panelId) {
        try {
          IProject project =  SimalRepositoryFactory.getProjectService().getProject(projectURI);
          ReadOnlyStyleBehavior rosb = new EditProjectPanel(panelId, project).new ReadOnlyStyleBehavior();
          return new SourceRepositoriesPanel(panelId, "Source Repositories", project.getRepositories(), rosb, project);
View Full Code Here

Examples of org.apache.wicket.util.tester.TestPanelSource

public class TestPersonListPanel extends TestBase {

  @Before
  @SuppressWarnings("serial")
  public void setUpPanel() {
    tester.startPanel(new TestPanelSource() {
      public Panel getTestPanel(String panelId) {
        try {
          return new PersonListPanel(panelId, "Person List", 7);
        } catch (SimalRepositoryException e) {
          fail(e.getMessage());
View Full Code Here

Examples of org.apache.wicket.util.tester.TestPanelSource

public class TestReleasesPanel extends TestBase {

  @Test
  @SuppressWarnings("serial")
  public void testRenderPanel() {
    tester.startPanel(new TestPanelSource() {
      public Panel getTestPanel(String panelId) {
        try {
          IProject project = SimalRepositoryFactory.getProjectService().getProject(projectURI);
          EditProjectPanel editProjectPanel = new EditProjectPanel("editProjectPanel", project);
          return new ReleasesPanel(panelId, project.getReleases(), editProjectPanel.new ReadOnlyStyleBehavior());
View Full Code Here

Examples of org.apache.wicket.util.tester.TestPanelSource

public class TestProjectSummaryPanel extends TestBase {

  @Test
  @SuppressWarnings("serial")
  public void testRenderUserHomePage() {
    tester.startPanel(new TestPanelSource() {
      public Panel getTestPanel(String panelId) {
        try {
          return new ProjectSummaryPanel(panelId, SimalRepositoryFactory.getProjectService().getProject(projectURI));
        } catch (SimalRepositoryException e) {
          fail(e.getMessage());
View Full Code Here

Examples of org.apache.wicket.util.tester.TestPanelSource

      tester.login();
    } else {
      tester.logout();
    }
   
    Panel panel = tester.startPanel(new TestPanelSource() {
      public Panel getTestPanel(String panelId) {
        try {
          IProject project = SimalRepositoryFactory.getProjectService().findProjectBySeeAlso(TEST_PROJECT_SEEALSO);
          Set<IDocument> homepages = project.getHomepages();
          return new DocumentSetPanel(panelId, "Homepage List", homepages, project) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.