Search in sources :

Example 1 with CommonComponent

use of com.google.startupos.common.CommonComponent in project startup-os by google.

the class FileUtilsTest method setup.

@Before
public void setup() {
    fileSystem = Jimfs.newFileSystem(fileSystemConfig);
    CommonComponent commonComponent = DaggerCommonComponent.builder().commonModule(new CommonModule() {

        @Provides
        @Singleton
        @Override
        public FileSystem provideDefaultFileSystem() {
            return fileSystem;
        }
    }).build();
    fileUtils = commonComponent.getFileUtils();
}
Also used : CommonModule(com.google.startupos.common.CommonModule) DaggerCommonComponent(com.google.startupos.common.DaggerCommonComponent) CommonComponent(com.google.startupos.common.CommonComponent) Before(org.junit.Before)

Aggregations

CommonComponent (com.google.startupos.common.CommonComponent)1 CommonModule (com.google.startupos.common.CommonModule)1 DaggerCommonComponent (com.google.startupos.common.DaggerCommonComponent)1 Before (org.junit.Before)1