Created
August 27, 2014 21:50
-
-
Save jpotts18/62f044d20a9b0633e8f9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 com.jpotts18.myveterinarian.app.core; | |
import com.jpotts18.myveterinarian.app.models.Issue; | |
import com.jpotts18.myveterinarian.app.models.Message; | |
import com.jpotts18.myveterinarian.app.models.Pet; | |
import com.jpotts18.myveterinarian.app.models.Photo; | |
import com.jpotts18.myveterinarian.app.models.User; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class Data { | |
public static User getTestUser(){ | |
User user = new User(); | |
user.setUuid("C1A55CF4-6B29-418A-926A-894929F854A8"); | |
user.setFirstName("Jeff"); | |
user.setLastName("Potter"); | |
user.setEmail("[email protected]"); | |
user.setPassword("aaaassss"); | |
user.setApiKey("TEST-API-KEY"); | |
user.setAvatarUrl("https://s3.amazonaws.com/uifaces/faces/twitter/jpotts18/128.jpg"); | |
return user; | |
} | |
public static Pet getTestPet(String name, String breed){ | |
Pet pet = new Pet(); | |
pet.setUuid("EA950952-E0EC-40EB-B162-0C7DCEFCE371"); | |
pet.setBreed("Australian Shepherd"); | |
pet.setDateOfBirth("3-25-2014"); | |
pet.setName("Berkley"); | |
pet.setFixed(true); | |
pet.setSpecies("Canine"); | |
pet.setMale(true); | |
return pet; | |
} | |
public static List<Pet> getPetList(){ | |
List<Pet> petList = new ArrayList<Pet>(); | |
Pet pet = new Pet(); | |
Photo photo = new Photo(); | |
photo.setMedium("http://media-cache-ak0.pinimg.com/236x/05/fe/34/05fe3426918d7de2e25505aff81b95b1.jpg"); | |
pet.setUuid("EA950952-E0EC-40EB-B162-0C7DCEFCE371"); | |
pet.setBreed("Australian Shepherd"); | |
pet.setDateOfBirth("3-25-2014"); | |
pet.setName("Berkley"); | |
pet.setFixed(true); | |
pet.setSpecies("Canine"); | |
pet.setMale(true); | |
pet.setPhoto(photo); | |
Photo photo1 = new Photo(); | |
photo1.setMedium("http://s3-ec.buzzfed.com/static/enhanced/web04/2012/8/27/13/enhanced-buzz-23723-1346088493-1.jpg"); | |
Pet pet1 = new Pet(); | |
pet1.setUuid("EA950952-E0EC-40EB-B162-0C7DCEFCE371"); | |
pet1.setBreed("Bulldog"); | |
pet1.setDateOfBirth("3-25-2014"); | |
pet1.setName("Rover"); | |
pet1.setFixed(true); | |
pet1.setSpecies("Canine"); | |
pet1.setMale(true); | |
pet1.setPhoto(photo1); | |
Pet pet2 = new Pet(); | |
Photo photo2 = new Photo(); | |
photo2.setMedium("http://media-cache-ak0.pinimg.com/236x/05/fe/34/05fe3426918d7de2e25505aff81b95b1.jpg"); | |
pet2.setUuid("EA950952-E0EC-40EB-B162-0C7DCEFCE371"); | |
pet2.setBreed("Golden Retriever"); | |
pet2.setDateOfBirth("3-25-2014"); | |
pet2.setName("Old Yeller"); | |
pet2.setFixed(true); | |
pet2.setSpecies("Canine"); | |
pet2.setMale(true); | |
pet2.setPhoto(photo2); | |
petList.add(pet); | |
petList.add(pet1); | |
petList.add(pet2); | |
return petList; | |
} | |
public static List<Issue> getTestIssues(){ | |
List<Issue> list = new ArrayList<Issue>(); | |
Issue issue = new Issue(); | |
issue.setUuid("2CC8BF10-0A5D-4E7E-BCCB-A11D891D3CEA"); | |
issue.setDescription("Vomiting"); | |
issue.setActive(true); | |
Issue issue1 = new Issue(); | |
issue1.setUuid("186B2F58-955E-447F-B1B3-B046819D8EA5"); | |
issue1.setDescription("Otitis"); | |
issue.setActive(false); | |
Issue issue2 = new Issue(); | |
issue2.setUuid("276B2F58-955E-447F-B1B3-B046813D8EA5"); | |
issue2.setDescription("Coughing"); | |
issue.setActive(false); | |
list.add(issue); | |
list.add(issue1); | |
list.add(issue2); | |
return list; | |
} | |
public static List<Message> getTestMessages(){ | |
List<Message> messageList = new ArrayList<Message>(); | |
Message message = new Message(); | |
message.setUuid("57C1CD29-F74B-4E36-8746-3E5AC530A445"); | |
message.setBody("Flannel gluten-free plaid, Echo Park +1 actually yr vinyl Pitchfork drinking vinegar YOLO keffiyeh PBR&B ethnic selfies."); | |
Message message1 = new Message(); | |
message1.setUuid("67D1CD29-F74B-4E36-8746-3E5AC530A445"); | |
message1.setBody("Cray vegan letterpress, gluten-free Kickstarter jean shorts roof party umami retro drinking vinegar fanny pack."); | |
Message message2 = new Message(); | |
message2.setUuid("77D1CD29-F74B-4E36-8746-3E5AC530A445"); | |
message1.setBody("Sustainable Godard hella YOLO raw denim, pug authentic semiotics synth VHS quinoa."); | |
messageList.add(message); | |
messageList.add(message1); | |
messageList.add(message2); | |
return messageList; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment