diff options
author | James Moger <james.moger@gitblit.com> | 2013-09-30 16:22:15 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2013-09-30 16:22:15 -0400 |
commit | c00577e5ddded5e53c9074da7def30bd9c350a1e (patch) | |
tree | d8786c719807c30104b727516e0d33d41b485674 /src/test/java/com/gitblit/tests/RepositoryModelTest.java | |
parent | 699e71e76b15081baf746c6ce9c9144f7e5f1ff9 (diff) | |
download | gitblit-c00577e5ddded5e53c9074da7def30bd9c350a1e.tar.gz gitblit-c00577e5ddded5e53c9074da7def30bd9c350a1e.zip |
Remove trailing whitespace from unit tests
Change-Id: I172bd4d493eee1013ec542ab97f1be29040f816d
Diffstat (limited to 'src/test/java/com/gitblit/tests/RepositoryModelTest.java')
-rw-r--r-- | src/test/java/com/gitblit/tests/RepositoryModelTest.java | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/test/java/com/gitblit/tests/RepositoryModelTest.java b/src/test/java/com/gitblit/tests/RepositoryModelTest.java index 1fe3fbd0..56c1ebbc 100644 --- a/src/test/java/com/gitblit/tests/RepositoryModelTest.java +++ b/src/test/java/com/gitblit/tests/RepositoryModelTest.java @@ -31,37 +31,37 @@ import com.gitblit.GitBlit; import com.gitblit.models.RepositoryModel; public class RepositoryModelTest { - + private static boolean wasStarted = false; - + @BeforeClass public static void startGitBlit() throws Exception { wasStarted = GitBlitSuite.startGitblit() == false; } - + @AfterClass public static void stopGitBlit() throws Exception { if (wasStarted == false) GitBlitSuite.stopGitblit(); } - + @Before public void initializeConfiguration() throws Exception{ Repository r = GitBlitSuite.getHelloworldRepository(); StoredConfig config = r.getConfig(); - + config.unsetSection(Constants.CONFIG_GITBLIT, Constants.CONFIG_CUSTOM_FIELDS); config.setString(Constants.CONFIG_GITBLIT, Constants.CONFIG_CUSTOM_FIELDS, "commitMessageRegEx", "\\d"); config.setString(Constants.CONFIG_GITBLIT, Constants.CONFIG_CUSTOM_FIELDS, "anotherProperty", "Hello"); - + config.save(); } - + @After public void teardownConfiguration() throws Exception { Repository r = GitBlitSuite.getHelloworldRepository(); StoredConfig config = r.getConfig(); - + config.unsetSection(Constants.CONFIG_GITBLIT, Constants.CONFIG_CUSTOM_FIELDS); config.save(); } @@ -70,25 +70,25 @@ public class RepositoryModelTest { public void testGetCustomProperty() throws Exception { RepositoryModel model = GitBlit.self().getRepositoryModel( GitBlitSuite.getHelloworldRepository().getDirectory().getName()); - + assertEquals("\\d", model.customFields.get("commitMessageRegEx")); assertEquals("Hello", model.customFields.get("anotherProperty")); } - + @Test public void testSetCustomProperty() throws Exception { RepositoryModel model = GitBlit.self().getRepositoryModel( GitBlitSuite.getHelloworldRepository().getDirectory().getName()); - + assertEquals("\\d", model.customFields.get("commitMessageRegEx")); assertEquals("Hello", model.customFields.get("anotherProperty")); - + assertEquals("Hello", model.customFields.put("anotherProperty", "GoodBye")); GitBlit.self().updateRepositoryModel(model.name, model, false); - + model = GitBlit.self().getRepositoryModel( GitBlitSuite.getHelloworldRepository().getDirectory().getName()); - + assertEquals("\\d", model.customFields.get("commitMessageRegEx")); assertEquals("GoodBye", model.customFields.get("anotherProperty")); } |