package com.oDesk.api.Routers.Freelancers; import static org.junit.Assert.*; import org.json.JSONObject; import org.junit.Test; import org.junit.runner.RunWith; import org.powermock.core.classloader.annotations.PrepareForTest; import org.powermock.modules.junit4.PowerMockRunner; import com.oDesk.api.Routers.Helper; import com.oDesk.api.Routers.Freelancers.Profile; @RunWith(PowerMockRunner.class) @PrepareForTest({ Profile.class }) public class ProfileTest extends Helper { @Test public void getSpecific() throws Exception { Profile profile = new Profile(client); JSONObject json = profile.getSpecific("key"); assertTrue(json instanceof JSONObject); } @Test public void getSpecificBrief() throws Exception { Profile profile = new Profile(client); JSONObject json = profile.getSpecificBrief("key"); assertTrue(json instanceof JSONObject); } }