Package org.jboss.resteasy.tests.scanning

Source Code of org.jboss.resteasy.tests.scanning.ScanTest

package org.jboss.resteasy.tests.scanning;

import org.junit.Test;
import org.junit.Assert;
import org.jboss.resteasy.client.ClientResponse;
import org.jboss.resteasy.client.ClientRequest;
import org.jboss.resteasy.plugins.providers.RegisterBuiltin;
import org.jboss.resteasy.spi.ResteasyProviderFactory;

/**
* TEST  RESTEASY-263 RESTEASY-274

* @author <a href="mailto:bill@burkecentral.com">Bill Burke</a>
* @version $Revision: 1 $
*/
public class ScanTest
{
   @Test
   public void testAll() throws Exception
   {
      RegisterBuiltin.register(ResteasyProviderFactory.getInstance());
      ClientRequest request = new ClientRequest("http://localhost:8080/scanning-test/test/doit");
      ClientResponse response = request.get();
      Assert.assertEquals(200, response.getStatus());
      Assert.assertEquals("hello world", response.getEntity(String.class));
   }
}
TOP

Related Classes of org.jboss.resteasy.tests.scanning.ScanTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.