diff options
author | James Moger <james.moger@gitblit.com> | 2011-11-21 09:24:05 -0500 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2011-11-21 09:24:05 -0500 |
commit | 797322eb90a1f5d21166fd691479b050ad7b754b (patch) | |
tree | 4f646539429037515e38ade9fe469efaf6900b4e /tests | |
parent | 712210f4c56cc9b74455c9b994f9102a178288c9 (diff) | |
download | gitblit-797322eb90a1f5d21166fd691479b050ad7b754b.tar.gz gitblit-797322eb90a1f5d21166fd691479b050ad7b754b.zip |
Tighter Gravatar integration. New window/tab on most activity links.
Each Gravatar thumbnail is now a link to the Gitblit Gravatar profile
page. This page displays some of the profile information and contains a
link to the full Gravatar profile.
Activity page links now launch a new window/tab instead of targeting
"self" since it can be expensive to requery the activity information.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/com/gitblit/tests/ActivityTest.java | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/com/gitblit/tests/ActivityTest.java b/tests/com/gitblit/tests/ActivityTest.java new file mode 100644 index 00000000..b7e5f7a1 --- /dev/null +++ b/tests/com/gitblit/tests/ActivityTest.java @@ -0,0 +1,31 @@ +/*
+ * Copyright 2011 gitblit.com.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.gitblit.tests;
+
+import java.io.IOException;
+
+import junit.framework.TestCase;
+
+import com.gitblit.models.GravatarProfile;
+import com.gitblit.utils.ActivityUtils;
+
+public class ActivityTest extends TestCase {
+
+ public void testGravatarProfile() throws IOException {
+ GravatarProfile profile = ActivityUtils.getGravatarProfile("beau@dentedreality.com.au");
+ assertEquals("beau", profile.preferredUsername);
+ }
+}
\ No newline at end of file |