// Path: Android/Shopr/src/main/java/com/uwetrottmann/shopr/utils/Utils.java
// public class Utils {
// 
//     /**
//      * Returns the first http url out of the given array in the form of
//      * "[http://abc,http://cde]".
//      */
//     public static String extractFirstUrl(String arrayAsString) {
//         arrayAsString = arrayAsString.substring(1, arrayAsString.length() - 1);
//         /*
//          * Some eBay URLs sadly include commas (,), so really split by ",http".
//          * We only want the first one anyhow.
//          */
//         String url = arrayAsString.split(",http")[0];
//         return url;
//     }
// 
// }


import static org.fest.assertions.api.Assertions.assertThat;
import com.uwetrottmann.shopr.utils.Utils;
import org.junit.Test;

package com.uwetrottmann.shopr.test;




public class UtilsTest {

    @Test
    public void testExtractFirstUrl() {
        // make sure those stupid ebay urls with , are split correctly
// Path: Android/Shopr/src/main/java/com/uwetrottmann/shopr/utils/Utils.java
// public class Utils {
// 
//     /**
//      * Returns the first http url out of the given array in the form of
//      * "[http://abc,http://cde]".
//      */
//     public static String extractFirstUrl(String arrayAsString) {
//         arrayAsString = arrayAsString.substring(1, arrayAsString.length() - 1);
//         /*
//          * Some eBay URLs sadly include commas (,), so really split by ",http".
//          * We only want the first one anyhow.
//          */
//         String url = arrayAsString.split(",http")[0];
//         return url;
//     }
// 
// }


// Path: Android/Shopr/src/test/java/com/uwetrottmann/shopr/test/UtilsTest.java
import static org.fest.assertions.api.Assertions.assertThat;
import com.uwetrottmann.shopr.utils.Utils;
import org.junit.Test;


package com.uwetrottmann.shopr.test;




public class UtilsTest {

    @Test
    public void testExtractFirstUrl() {
        // make sure those stupid ebay urls with , are split correctly
        String actual = Utils