James Moger
2013-01-04 8bde5a04d27e32a03e3790e39943d685c40904f7
commit | author | age
797322 1 /*
JM 2  * Copyright 2011 gitblit.com.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package com.gitblit.tests;
17
7e8873 18 import static org.junit.Assert.assertEquals;
JM 19
797322 20 import java.io.IOException;
JM 21
7e8873 22 import org.junit.Test;
797322 23
JM 24 import com.gitblit.models.GravatarProfile;
25 import com.gitblit.utils.ActivityUtils;
26
7e8873 27 public class ActivityTest {
797322 28
7e8873 29     @Test
797322 30     public void testGravatarProfile() throws IOException {        
JM 31         GravatarProfile profile = ActivityUtils.getGravatarProfile("beau@dentedreality.com.au");
32         assertEquals("beau", profile.preferredUsername);
33     }
34 }