Search in sources :

Example 1 with FileSystemMock

use of com.codingchili.core.testing.FileSystemMock in project chili-core by codingchili.

the class PatchHandlerTest method startUp.

@BeforeClass
public static void startUp() {
    system = new SystemContext();
    PatchContext context = new PatchContext(system) {

        @Override
        public String directory() {
            return testDirectory();
        }

        @Override
        public FileSystem fileSystem() {
            return new FileSystemMock(vertx);
        }
    };
    handler = new PatchHandler(context);
}
Also used : PatchContext(com.codingchili.patching.configuration.PatchContext) SystemContext(com.codingchili.core.context.SystemContext) PatchHandler(com.codingchili.patching.controller.PatchHandler) FileSystemMock(com.codingchili.core.testing.FileSystemMock) BeforeClass(org.junit.BeforeClass)

Aggregations

SystemContext (com.codingchili.core.context.SystemContext)1 FileSystemMock (com.codingchili.core.testing.FileSystemMock)1 PatchContext (com.codingchili.patching.configuration.PatchContext)1 PatchHandler (com.codingchili.patching.controller.PatchHandler)1 BeforeClass (org.junit.BeforeClass)1