diff options
author | John Crygier <john.crygier@aon.com> | 2012-05-04 13:24:01 -0500 |
---|---|---|
committer | John Crygier <john.crygier@aon.com> | 2012-05-04 13:24:01 -0500 |
commit | ef4a4558ee259e64b1038b69505556a248eeb775 (patch) | |
tree | 8d55079596a9a04f6d3030462f42dfaea07f9508 /tests | |
parent | 4a5a55229bf066bf933dde6cb6f51a4378d67fb7 (diff) | |
download | gitblit-ef4a4558ee259e64b1038b69505556a248eeb775.tar.gz gitblit-ef4a4558ee259e64b1038b69505556a248eeb775.zip |
Web UI done for Custom Fields. Changed variable names to be consistent with "custom" instead of "user"
Diffstat (limited to 'tests')
-rw-r--r-- | tests/com/gitblit/tests/RepositoryModelTest.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/com/gitblit/tests/RepositoryModelTest.java b/tests/com/gitblit/tests/RepositoryModelTest.java index f7418152..611ed295 100644 --- a/tests/com/gitblit/tests/RepositoryModelTest.java +++ b/tests/com/gitblit/tests/RepositoryModelTest.java @@ -67,8 +67,8 @@ public class RepositoryModelTest { RepositoryModel model = GitBlit.self().getRepositoryModel( GitBlitSuite.getHelloworldRepository().getDirectory().getName()); - assertEquals("\\d", model.userDefinedProperties.get("commitMessageRegEx")); - assertEquals("Hello", model.userDefinedProperties.get("anotherProperty")); + assertEquals("\\d", model.customDefinedProperties.get("commitMessageRegEx")); + assertEquals("Hello", model.customDefinedProperties.get("anotherProperty")); } @Test @@ -76,17 +76,17 @@ public class RepositoryModelTest { RepositoryModel model = GitBlit.self().getRepositoryModel( GitBlitSuite.getHelloworldRepository().getDirectory().getName()); - assertEquals("\\d", model.userDefinedProperties.get("commitMessageRegEx")); - assertEquals("Hello", model.userDefinedProperties.get("anotherProperty")); + assertEquals("\\d", model.customDefinedProperties.get("commitMessageRegEx")); + assertEquals("Hello", model.customDefinedProperties.get("anotherProperty")); - assertEquals("Hello", model.userDefinedProperties.put("anotherProperty", "GoodBye")); + assertEquals("Hello", model.customDefinedProperties.put("anotherProperty", "GoodBye")); GitBlit.self().updateRepositoryModel(model.name, model, false); model = GitBlit.self().getRepositoryModel( GitBlitSuite.getHelloworldRepository().getDirectory().getName()); - assertEquals("\\d", model.userDefinedProperties.get("commitMessageRegEx")); - assertEquals("GoodBye", model.userDefinedProperties.get("anotherProperty")); + assertEquals("\\d", model.customDefinedProperties.get("commitMessageRegEx")); + assertEquals("GoodBye", model.customDefinedProperties.get("anotherProperty")); } } |