test_class.file: restx-core/src/test/java/restx/specs/RestxSpecLoaderTest.java
test_class.identifier: RestxSpecLoaderTest
test_case.body: @Test
      public void should_load_spec() throws Exception {
          RestxSpec spec = new RestxSpecLoader(Factory.getInstance()).load("cases/test/test.spec.yaml");
  
          assertThat(spec.getTitle()).isEqualTo("should say hello");
          assertThat(spec.getGiven()).hasSize(2);
  
          assertThat(spec.getGiven().get(0)).isInstanceOf(GivenTime.class);
          assertThat(((GivenTime) spec.getGiven().get(0)).getTime().getMillis())
                  .isEqualTo(DateTime.parse("2013-03-31T14:33:18.272+02:00").getMillis());
  
          assertThat(spec.getGiven().get(1)).isInstanceOf(GivenUUIDGenerator.class);
          assertThat(((GivenUUIDGenerator) spec.getGiven().get(1)).getPlaybackUUIDs()).containsExactly("123456");
  
          assertThat(spec.getWhens()).extracting("method", "path").containsExactly(Tuple.tuple("GET", "message/xavier"));
          assertThat(spec.getWhens()).extracting("then").extracting("expectedCode", "expected")
                  .containsExactly(Tuple.tuple(200, "{\"message\":\"hello xavier, it's 14:33:18\"}"));
      }
test_case.class_method_signature: RestxSpecLoaderTest.should_load_spec()
test_case.full_signature: @Test public void should_load_spec()
test_case.identifier: should_load_spec
test_case.invocations: load getInstance isEqualTo assertThat getTitle hasSize assertThat getGiven isInstanceOf assertThat get getGiven isEqualTo assertThat getMillis getTime get getGiven getMillis parse isInstanceOf assertThat get getGiven containsExactly assertThat getPlaybackUUIDs get getGiven containsExactly extracting assertThat getWhens tuple containsExactly extracting extracting assertThat getWhens tuple
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void should_load_spec()
focal_class.declarator: logger = LoggerFactory.getLogger(RestxSpecLoader.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LoggerFactory.getLogger(RestxSpecLoader.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: givenLoaders
focal_class.modifier: private final
focal_class.original_string: private final Set<NamedComponent<GivenLoader>> givenLoaders;
focal_class.type: Set<NamedComponent<GivenLoader>>
focal_class.var_name: givenLoaders
focal_class.declarator: whenHeaderLoaders
focal_class.modifier: private final
focal_class.original_string: private final Set<NamedComponent<WhenHeaderLoader>> whenHeaderLoaders;
focal_class.type: Set<NamedComponent<WhenHeaderLoader>>
focal_class.var_name: whenHeaderLoaders
focal_class.declarator: names
focal_class.modifier: private final
focal_class.original_string: private final String names;
focal_class.type: String
focal_class.var_name: names
focal_class.file: restx-core/src/main/java/restx/specs/RestxSpecLoader.java
focal_class.identifier: RestxSpecLoader
focal_class.class_method_signature: RestxSpecLoader.RestxSpecLoader(Factory factory)
focal_class.full_signature: @Inject public  RestxSpecLoader(Factory factory)
focal_class.identifier: RestxSpecLoader
focal_class.modifiers: @Inject public
focal_class.parameters: (Factory factory)
focal_class.signature:  RestxSpecLoader(Factory factory)
focal_class.class_method_signature: RestxSpecLoader.RestxSpecLoader(Set<NamedComponent<GivenLoader>> givenLoaders,
                             Set<NamedComponent<WhenHeaderLoader>> whenHeaderLoaders)
focal_class.full_signature: public  RestxSpecLoader(Set<NamedComponent<GivenLoader>> givenLoaders,
                             Set<NamedComponent<WhenHeaderLoader>> whenHeaderLoaders)
focal_class.identifier: RestxSpecLoader
focal_class.modifiers: public
focal_class.parameters: (Set<NamedComponent<GivenLoader>> givenLoaders,
                             Set<NamedComponent<WhenHeaderLoader>> whenHeaderLoaders)
focal_class.signature:  RestxSpecLoader(Set<NamedComponent<GivenLoader>> givenLoaders,
                             Set<NamedComponent<WhenHeaderLoader>> whenHeaderLoaders)
focal_class.class_method_signature: RestxSpecLoader.load(String resource)
focal_class.full_signature: public RestxSpec load(String resource)
focal_class.identifier: load
focal_class.modifiers: public
focal_class.parameters: (String resource)
focal_class.return: RestxSpec
focal_class.signature: RestxSpec load(String resource)
focal_class.class_method_signature: RestxSpecLoader.load(String path, CharSource charSource)
focal_class.full_signature: public RestxSpec load(String path, CharSource charSource)
focal_class.identifier: load
focal_class.modifiers: public
focal_class.parameters: (String path, CharSource charSource)
focal_class.return: RestxSpec
focal_class.signature: RestxSpec load(String path, CharSource charSource)
focal_class.class_method_signature: RestxSpecLoader.resolveFromBody(String body)
focal_class.full_signature: private Optional<WhenHeaderLoader> resolveFromBody(String body)
focal_class.identifier: resolveFromBody
focal_class.modifiers: private
focal_class.parameters: (String body)
focal_class.return: Optional<WhenHeaderLoader>
focal_class.signature: Optional<WhenHeaderLoader> resolveFromBody(String body)
focal_class.class_method_signature: RestxSpecLoader.loadGivens(Map testCase)
focal_class.full_signature: @SuppressWarnings("unchecked") private List<Given> loadGivens(Map testCase)
focal_class.identifier: loadGivens
focal_class.modifiers: @SuppressWarnings("unchecked") private
focal_class.parameters: (Map testCase)
focal_class.return: List<Given>
focal_class.signature: List<Given> loadGivens(Map testCase)
focal_class.class_method_signature: RestxSpecLoader.findLoader(Map given, String type)
focal_class.full_signature: private GivenLoader findLoader(Map given, String type)
focal_class.identifier: findLoader
focal_class.modifiers: private
focal_class.parameters: (Map given, String type)
focal_class.return: GivenLoader
focal_class.signature: GivenLoader findLoader(Map given, String type)
focal_method.body: public RestxSpec load(String resource) throws IOException {
          return load(resource, Resources.asCharSource(
                  MoreResources.getResource(resource, true),
                  Charsets.UTF_8));
      }
focal_method.class_method_signature: RestxSpecLoader.load(String resource)
focal_method.full_signature: public RestxSpec load(String resource)
focal_method.identifier: load
focal_method.invocations: load asCharSource getResource
focal_method.modifiers: public
focal_method.parameters: (String resource)
focal_method.return: RestxSpec
focal_method.signature: RestxSpec load(String resource)