blob: 5290c35c75a50f1e9b7fc1f88fdf5f6550161ac8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
package cgeo.geocaching.apps.cache;
import static org.assertj.core.api.Assertions.assertThat;
import cgeo.geocaching.Geocache;
import junit.framework.TestCase;
public class WhereYouGoAppTest extends TestCase {
public static void testGetWhereIGoUrl() throws Exception {
Geocache cache = new Geocache();
cache.setDescription("<p style=\"max-width:670px;\"><a href=\"http://www.wherigo.com/cartridge/details.aspx?CGUID=c4577c31-09e9-44f0-ae48-83737e57adbd\"><img class=\"InsideTable\"");
assertThat(WhereYouGoApp.getWhereIGoUrl(cache)).isEqualTo("http://www.wherigo.com/cartridge/details.aspx?CGUID=c4577c31-09e9-44f0-ae48-83737e57adbd");
}
}
|