@@ -0,0 +1,1257 @@
+/*%0A * To change this template, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0Apackage org.codehaus.mojo.scmchangelog.tracker;%0A%0Aimport junit.framework.TestCase;%0A%0A/**%0A *%0A * @author Emmanuel Hugonnet%0A */%0Apublic class SourceforgeBugTrackLinkerTest extends TestCase %7B%0A%0A  public SourceforgeBugTrackLinkerTest(String testName) %7B%0A    super(testName);%0A  %7D%0A%0A  protected void setUp() throws Exception %7B%0A    super.setUp();%0A  %7D%0A%0A  protected void tearDown() throws Exception %7B%0A    super.tearDown();%0A  %7D%0A%0A  public void testLinkToSourceforge() %7B%0A    SourceforgeBugTrackLinker linker = new SourceforgeBugTrackLinker(%0A            %22http://sourceforge.net/tracker2/?func=browse&group_id=23629&atid=379133%22);%0A    String result = linker.getLinkUrlForBug(%222189340%22);%0A    assertNotNull(result);%0A    assertEquals(%22http://sourceforge.net/tracker2/?func=detail&aid=2189340&group_id=23629&atid=379133%22,%0A            result);%0A    linker = new SourceforgeBugTrackLinker(%0A            %22http://sourceforge.net/tracker2/?func=browse&group_id=23629&atid=379133%22);%0A    result = linker.getLinkUrlForBug(%221986422%22);%0A    assertNotNull(result);%0A    assertEquals(%22http://sourceforge.net/tracker2/?func=detail&aid=1986422&group_id=23629&atid=379133%22,%0A            result);%0A  %7D%0A%7D%0A

test for sourceforge linker.