TestData.java 570 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
package at.ac.tuwien.sepm.assignment.individual.base;

import at.ac.tuwien.sepm.assignment.individual.entity.Owner;

public interface TestData {

    /**
     * URI Data
     */
    String BASE_URL = "http://localhost:";
    String HORSE_URL = "/horses";
    String OWNER_URL = "/owners";

    /**
     * Owner Data
     */
    static Owner getNewOwner() {
        return new Owner("Owner");
    }

    static Owner getNewOwner(String name) {
        return new Owner(name);
    }

    static Owner getNewOwnerWithId() {
        return new Owner(1L, "Owner");
    }


}