@@ -0,0 +1,783 @@
+package bakersoftware.maven_replacer_plugin;%0D%0A%0D%0Aimport static org.junit.Assert.*;%0D%0A%0D%0Aimport org.junit.Test;%0D%0Aimport org.junit.runner.RunWith;%0D%0Aimport org.mockito.Mock;%0D%0Aimport org.mockito.runners.MockitoJUnitRunner;%0D%0A%0D%0Aimport bakersoftware.maven_replacer_plugin.file.FileUtils;%0D%0A%0D%0A@RunWith(MockitoJUnitRunner.class)%0D%0Apublic class ReplacerFactoryTest %7B%0D%0A%09@Mock%0D%0A%09private FileUtils fileUtils;%0D%0A%0D%0A%09@Mock%0D%0A%09private TokenReplacer tokenReplacer;%0D%0A%0D%0A%09@Test%0D%0A%09public void shouldReturnReplacerWithFileUtilsAndTokenReplacer() %7B%0D%0A%09%09ReplacerFactory factory = new ReplacerFactory(fileUtils, tokenReplacer);%0D%0A%0D%0A%09%09Replacer replacer = factory.create();%0D%0A%09%09assertNotNull(replacer);%0D%0A%09%09assertSame(fileUtils, replacer.getFileUtils());%0D%0A%09%09assertSame(tokenReplacer, replacer.getTokenReplacer());%0D%0A%09%7D%0D%0A%7D%0D%0A

test for repacer factory