// Path: src/main/java/ninja/eivind/hotsreplayuploader/providers/hotslogs/HotSLogsHero.java
// @JsonIgnoreProperties(ignoreUnknown = true)
// public class HotSLogsHero implements Hero {
// 
//     @JsonProperty("PrimaryName")
//     private String primaryName;
//     @JsonProperty("ImageURL")
//     private String imageURL;
// 
//     public HotSLogsHero() {
//     }
// 
//     public HotSLogsHero(final String primaryName, final String imageURL) {
//         this.primaryName = primaryName;
//         this.imageURL = imageURL;
//     }
// 
//     @Override
//     public String toString() {
//         return primaryName;
//     }
// 
//     @Override
//     public boolean equals(final Object o) {
//         if (this == o) return true;
//         if (o == null || getClass() != o.getClass()) return false;
// 
//         final HotSLogsHero hero = (HotSLogsHero) o;
// 
//         return !(primaryName != null ? !primaryName.equals(hero.primaryName) : hero.primaryName != null)
//                 && !(imageURL != null ? !imageURL.equals(hero.imageURL) : hero.imageURL != null);
// 
//     }
// 
//     @Override
//     public int hashCode() {
//         int result = primaryName != null ? primaryName.hashCode() : 0;
//         result = 31 * result + (imageURL != null ? imageURL.hashCode() : 0);
//         return result;
//     }
// 
//     @Override
//     public String getPrimaryName() {
//         return primaryName;
//     }
// 
//     @Override
//     public void setPrimaryName(final String primaryName) {
//         this.primaryName = primaryName;
//     }
// 
//     @Override
//     public String getImageURL() {
//         return imageURL;
//     }
// 
//     @Override
//     public void setImageURL(final String imageURL) {
//         this.imageURL = imageURL;
//     }
// 
// }
// 
// Path: src/main/java/ninja/eivind/hotsreplayuploader/utils/SimpleHttpClient.java
// public class SimpleHttpClient {
// 
//     public static final String SPACE = "%20";
//     private static final Logger LOG = LoggerFactory.getLogger(SimpleHttpClient.class);
// 
//     /**
//      * Encodes a given String url into a valid URI if possible
//      * Method should be updated as required to make sure any valid String url that can be pasted into an address bar
//      * will fit into a URI object
//      *
//      * @param url the url to encode
//      * @return a newly built URI if at all possible
//      */
//     public static URI encode(final String url) {
//         return URI.create(url.replaceAll(" ", SPACE));
//     }
// 
//     public String simpleRequest(final String target) throws IOException {
//         return simpleRequest(encode(target));
//     }
// 
//     public String simpleRequest(final URI uri) throws IOException {
//         return simpleRequest(uri.toURL());
//     }
// 
//     public String simpleRequest(final URL url) throws IOException {
//         LOG.info("Opening connection to " + url);
//         final InputStream inputStream = url.openStream();
//         return IOUtils.readInputStream(inputStream);
//     }
// }
// 
// Path: src/test/java/ninja/eivind/hotsreplayuploader/utils/SimpleHttpClientTestUtils.java
// public class SimpleHttpClientTestUtils {
// 
//     private SimpleHttpClientTestUtils() {
//     }
// 
//     public static SimpleHttpClient getBaseMock() {
//         return mock(SimpleHttpClient.class);
//     }
// }


import com.fasterxml.jackson.databind.ObjectMapper;
import ninja.eivind.hotsreplayuploader.providers.hotslogs.HotSLogsHero;
import ninja.eivind.hotsreplayuploader.utils.SimpleHttpClient;
import ninja.eivind.hotsreplayuploader.utils.SimpleHttpClientTestUtils;
import org.junit.Before;
import org.junit.Test;
import java.util.Arrays;
import java.util.List;
import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.when;
// Copyright 2015 Eivind Vegsundvåg
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package ninja.eivind.hotsreplayuploader.concurrent.tasks;




public class HotSLogsHeroListTaskTest {

    private HeroListTask task;
// Path: src/main/java/ninja/eivind/hotsreplayuploader/providers/hotslogs/HotSLogsHero.java
// @JsonIgnoreProperties(ignoreUnknown = true)
// public class HotSLogsHero implements Hero {
// 
//     @JsonProperty("PrimaryName")
//     private String primaryName;
//     @JsonProperty("ImageURL")
//     private String imageURL;
// 
//     public HotSLogsHero() {
//     }
// 
//     public HotSLogsHero(final String primaryName, final String imageURL) {
//         this.primaryName = primaryName;
//         this.imageURL = imageURL;
//     }
// 
//     @Override
//     public String toString() {
//         return primaryName;
//     }
// 
//     @Override
//     public boolean equals(final Object o) {
//         if (this == o) return true;
//         if (o == null || getClass() != o.getClass()) return false;
// 
//         final HotSLogsHero hero = (HotSLogsHero) o;
// 
//         return !(primaryName != null ? !primaryName.equals(hero.primaryName) : hero.primaryName != null)
//                 && !(imageURL != null ? !imageURL.equals(hero.imageURL) : hero.imageURL != null);
// 
//     }
// 
//     @Override
//     public int hashCode() {
//         int result = primaryName != null ? primaryName.hashCode() : 0;
//         result = 31 * result + (imageURL != null ? imageURL.hashCode() : 0);
//         return result;
//     }
// 
//     @Override
//     public String getPrimaryName() {
//         return primaryName;
//     }
// 
//     @Override
//     public void setPrimaryName(final String primaryName) {
//         this.primaryName = primaryName;
//     }
// 
//     @Override
//     public String getImageURL() {
//         return imageURL;
//     }
// 
//     @Override
//     public void setImageURL(final String imageURL) {
//         this.imageURL = imageURL;
//     }
// 
// }
// 
// Path: src/main/java/ninja/eivind/hotsreplayuploader/utils/SimpleHttpClient.java
// public class SimpleHttpClient {
// 
//     public static final String SPACE = "%20";
//     private static final Logger LOG = LoggerFactory.getLogger(SimpleHttpClient.class);
// 
//     /**
//      * Encodes a given String url into a valid URI if possible
//      * Method should be updated as required to make sure any valid String url that can be pasted into an address bar
//      * will fit into a URI object
//      *
//      * @param url the url to encode
//      * @return a newly built URI if at all possible
//      */
//     public static URI encode(final String url) {
//         return URI.create(url.replaceAll(" ", SPACE));
//     }
// 
//     public String simpleRequest(final String target) throws IOException {
//         return simpleRequest(encode(target));
//     }
// 
//     public String simpleRequest(final URI uri) throws IOException {
//         return simpleRequest(uri.toURL());
//     }
// 
//     public String simpleRequest(final URL url) throws IOException {
//         LOG.info("Opening connection to " + url);
//         final InputStream inputStream = url.openStream();
//         return IOUtils.readInputStream(inputStream);
//     }
// }
// 
// Path: src/test/java/ninja/eivind/hotsreplayuploader/utils/SimpleHttpClientTestUtils.java
// public class SimpleHttpClientTestUtils {
// 
//     private SimpleHttpClientTestUtils() {
//     }
// 
//     public static SimpleHttpClient getBaseMock() {
//         return mock(SimpleHttpClient.class);
//     }
// }


// Path: src/test/java/ninja/eivind/hotsreplayuploader/concurrent/tasks/HotSLogsHeroListTaskTest.java
import com.fasterxml.jackson.databind.ObjectMapper;
import ninja.eivind.hotsreplayuploader.providers.hotslogs.HotSLogsHero;
import ninja.eivind.hotsreplayuploader.utils.SimpleHttpClient;
import ninja.eivind.hotsreplayuploader.utils.SimpleHttpClientTestUtils;
import org.junit.Before;
import org.junit.Test;
import java.util.Arrays;
import java.util.List;
import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.when;

// Copyright 2015 Eivind Vegsundvåg
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package ninja.eivind.hotsreplayuploader.concurrent.tasks;




public class HotSLogsHeroListTaskTest {

    private HeroListTask task;
    private HotSLogsHero artanis = new HotSLogsHero("Artanis", "Artanis");