~s-friedemann/tomdroid/sshfs

« back to all changes in this revision

Viewing changes to lib/signpost/signpost-core/src/test/java/oauth/signpost/basic/HttpRequestAdapterTest.java

  • Committer: Benoit Garret
  • Date: 2010-03-06 20:39:56 UTC
  • mto: (185.4.1 sync-ui)
  • mto: This revision was merged to the branch mainline in revision 186.
  • Revision ID: benoit.garret_launchpad@gadz.org-20100306203956-k6vlss6hk2d91j4n
Put the signpost and commons-codec libraries in lib/

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package oauth.signpost.basic;
 
2
 
 
3
import static org.junit.Assert.assertTrue;
 
4
 
 
5
import java.net.HttpURLConnection;
 
6
import java.net.URL;
 
7
 
 
8
import org.junit.runner.RunWith;
 
9
import org.mockito.runners.MockitoJUnit44Runner;
 
10
 
 
11
@RunWith(MockitoJUnit44Runner.class)
 
12
public class HttpRequestAdapterTest extends HttpRequestAdapterTestBase {
 
13
 
 
14
    @Override
 
15
    public void prepareRequest() throws Exception {
 
16
        HttpURLConnection conn = (HttpURLConnection) new URL(URL).openConnection();
 
17
        conn.setRequestMethod(HTTP_POST_METHOD);
 
18
        conn.setRequestProperty(HEADER_NAME, HEADER_VALUE);
 
19
        conn.setRequestProperty("Content-Type", CONTENT_TYPE);
 
20
        request = new HttpRequestAdapter(conn);
 
21
    }
 
22
 
 
23
    @Override
 
24
    public void shouldReturnCorrectMessagePayload() throws Exception {
 
25
        // can't test this here, because we would have to establish a connection
 
26
        assertTrue(true);
 
27
    }
 
28
}