This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.fantail.location.service; | |
import java.net.URI; | |
import java.net.URISyntaxException; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.UUID; | |
import javax.ws.rs.BadRequestException; | |
import javax.ws.rs.InternalServerErrorException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.fantail.location.service; | |
import static org.junit.Assert.assertNotNull; | |
import static org.junit.Assert.assertTrue; | |
import java.util.HashMap; | |
import java.util.Map; | |
import javax.ws.rs.BadRequestException; | |
import javax.ws.rs.NotFoundException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.fantail.location.service; | |
import java.util.HashMap; | |
import java.util.Map; | |
import javax.ws.rs.NotFoundException; | |
import io.fantail.location.model.Location; | |
public class LocationService { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.fantail.location.service; | |
import java.util.HashMap; | |
import java.util.Map; | |
import javax.ws.rs.NotFoundException; | |
import org.junit.Assert; | |
import org.junit.Before; | |
import org.junit.Rule; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.fantail.location.service; | |
import java.util.HashMap; | |
import java.util.Map; | |
import org.junit.Assert; | |
import org.junit.Before; | |
import org.junit.Test; | |
import io.fantail.location.model.Location; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.fantail.location.service; | |
import java.util.HashMap; | |
import java.util.Map; | |
import io.fantail.location.model.Location; | |
public class LocationService { | |
private Map<String, Location> locations; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.fantail.location.service; | |
import io.fantail.location.model.Location; | |
public class LocationService { | |
private Location location = new Location(); | |
public Location getLocation(String id) { | |
return location; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.fantail.location.service; | |
import org.junit.Assert; | |
import org.junit.Before; | |
import org.junit.Test; | |
public class LocationServiceTest { | |
private LocationService locationService; | |
@Before |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.fantail.location.model; | |
public class Photo { | |
private String id; | |
private byte[] image; | |
private String caption; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.fantail.location.model; | |
import java.util.List; | |
public class Location { | |
private String id; | |
private String name; | |
private String intro; | |
private String description; | |
private List<Photo> photos; |
NewerOlder