Package fitnesse.testsystems.slim.tables

Examples of fitnesse.testsystems.slim.tables.SlimTableFactory


      slimClient = new InProcessSlimClientBuilder(getDescriptor()).build();
    } else {
      slimClient = new SlimClientBuilder(getDescriptor()).build();
    }
    SlimTestSystem testSystem = new HtmlSlimTestSystem("slim", slimClient,
            new SlimTableFactory(), customComparatorRegistry);
    testSystem.addTestSystemListener(this);
    return testSystem;
  }
View Full Code Here


    }
    if (authenticator == null) {
      authenticator = pluginsLoader.makeAuthenticator(get(CREDENTIALS));
    }

    SlimTableFactory slimTableFactory = new SlimTableFactory();
    CustomComparatorRegistry customComparatorRegistry = new CustomComparatorRegistry();

    MultipleTestSystemFactory testSystemFactory = new MultipleTestSystemFactory(slimTableFactory, customComparatorRegistry);

    FitNesseContext context = new FitNesseContext(version,
View Full Code Here

  public void setUp() throws Exception {
    testProperties = new Properties();
    responderFactory = new ResponderFactory(".");
    testProvider = new SymbolProvider(new SymbolType[] {});
    testWikiPageFactoryRegistry = new FileSystemPageFactory();
    testSlimTableFactory = new SlimTableFactory();
    testCustomComparatorsRegistry = new CustomComparatorRegistry();
    testTestSystemFactory = new MultipleTestSystemFactory(testSlimTableFactory, testCustomComparatorsRegistry);
    loader = new PluginsLoader(new ComponentFactory(testProperties));

    assertSymbolTypeMatch("!today", false);
View Full Code Here

    verify(wikiPageFactory).registerWikiPageFactory(any(FooWikiPageFactory.class));
  }

  @Test
  public void testSlimTablesCreation() throws PluginException {
    SlimTableFactory slimTableFactory = new SlimTableFactory();
    testProperties.setProperty(ConfigurationParameter.SLIM_TABLES.getKey(), "test:" + TestSlimTable.class.getName());
    loader.loadSlimTables(slimTableFactory);

    HtmlTable table = makeMockTable("test");
    SlimTable slimTable = slimTableFactory.makeSlimTable(table, "foo", new SlimTestContextImpl());
    assertSame(TestSlimTable.class, slimTable.getClass());
  }
View Full Code Here

  }

  @Test
  public void testSlimTablesWithColonCreation() throws PluginException {
    testProperties.setProperty(ConfigurationParameter.SLIM_TABLES.getKey(), "test::" + TestSlimTable.class.getName());
    SlimTableFactory slimTableFactory = new SlimTableFactory();
    loader.loadSlimTables(slimTableFactory);

    HtmlTable table = makeMockTable("test:");
    SlimTable slimTable = slimTableFactory.makeSlimTable(table, "foo", new SlimTestContextImpl());
    assertSame(TestSlimTable.class, slimTable.getClass());
  }
View Full Code Here

TOP

Related Classes of fitnesse.testsystems.slim.tables.SlimTableFactory

Copyright © 2018 www.massapicom. 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.