Package fitnesse.wiki.fs

Source Code of fitnesse.wiki.fs.SimpleFileVersionsControllerTest

package fitnesse.wiki.fs;

import java.util.Properties;

import fitnesse.components.ComponentFactory;
import org.junit.Test;

import static org.hamcrest.CoreMatchers.instanceOf;
import static org.junit.Assert.*;

public class SimpleFileVersionsControllerTest {

  @Test
  public void canCreateVersionsControllerThroughComponentFactory() {
    Properties properties = new Properties();
    properties.put("VersionsController", "fitnesse.wiki.fs.SimpleFileVersionsController");
    ComponentFactory componentFactory = new ComponentFactory(properties);
    Object versionsController = componentFactory.createComponent("VersionsController", null);

    assertThat(versionsController, instanceOf(SimpleFileVersionsController.class));
  }
}
TOP

Related Classes of fitnesse.wiki.fs.SimpleFileVersionsControllerTest

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.