001/*
002 * The contents of this file are subject to the license and copyright
003 * detailed in the LICENSE and NOTICE files at the root of the source
004 * tree.
005 */
006package org.fcrepo.client;
007
008import static org.junit.Assert.assertEquals;
009
010import org.apache.http.client.methods.HttpDelete;
011import org.apache.http.client.methods.HttpGet;
012import org.apache.http.client.methods.HttpHead;
013import org.apache.http.client.methods.HttpOptions;
014import org.apache.http.client.methods.HttpPatch;
015import org.apache.http.client.methods.HttpPost;
016import org.apache.http.client.methods.HttpPut;
017
018import org.junit.Test;
019import org.junit.runner.RunWith;
020import org.junit.runners.JUnit4;
021
022/**
023 * @author Aaron Coburn
024 */
025@RunWith(JUnit4.class)
026public class HttpMethodsTest {
027
028    @Test
029    public void testMethods() {
030        assertEquals(HttpMethods.DELETE.toString(), HttpDelete.METHOD_NAME);
031        assertEquals(HttpMethods.GET.toString(), HttpGet.METHOD_NAME);
032        assertEquals(HttpMethods.HEAD.toString(), HttpHead.METHOD_NAME);
033        assertEquals(HttpMethods.OPTIONS.toString(), HttpOptions.METHOD_NAME);
034        assertEquals(HttpMethods.PATCH.toString(), HttpPatch.METHOD_NAME);
035        assertEquals(HttpMethods.POST.toString(), HttpPost.METHOD_NAME);
036        assertEquals(HttpMethods.PUT.toString(), HttpPut.METHOD_NAME);
037    }
038}