Package by.stub.yaml.stubs

Examples of by.stub.yaml.stubs.StubRequest.addMethod()


public class ReflectionUtilsTest {

   @Test
   public void shouldGetObjectPropertiesAndValues() throws Exception {
      final StubRequest stubRequest = StubRequest.newStubRequest();
      stubRequest.addMethod(HttpMethods.POST);
      final Map<String, String> properties = ReflectionUtils.getProperties(stubRequest);

      assertThat("[POST]").isEqualTo(properties.get("method"));
      assertThat(properties.get("url")).isNull();
      assertThat(properties.get("post")).isNull();
View Full Code Here

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.