| | |
| | | */
|
| | | package com.gitblit.tests;
|
| | |
|
| | | import static org.junit.Assert.assertEquals;
|
| | |
|
| | | import java.io.IOException;
|
| | |
|
| | | import junit.framework.TestCase;
|
| | | import org.junit.Test;
|
| | |
|
| | | import com.gitblit.models.GravatarProfile;
|
| | | import com.gitblit.utils.ActivityUtils;
|
| | |
|
| | | public class ActivityTest extends TestCase {
|
| | | public class ActivityTest {
|
| | |
|
| | | @Test
|
| | | public void testGravatarProfile() throws IOException {
|
| | | GravatarProfile profile = ActivityUtils.getGravatarProfile("beau@dentedreality.com.au");
|
| | | assertEquals("beau", profile.preferredUsername);
|