private Raml verifyDump(Raml source, String dump) { RamlDocumentBuilder verifier = new RamlDocumentBuilder(); Raml target = verifier.build(dump, ""); assertThat(target.getTitle(), is(source.getTitle())); assertThat(target.getVersion(), is(source.getVersion())); assertThat(target.getBaseUri(), is(source.getBaseUri())); assertThat(target.getBaseUriParameters().size(), is(source.getBaseUriParameters().size())); assertThat(target.getDocumentation().size(), is(source.getDocumentation().size())); assertThat(target.getResources().size(), is(source.getResources().size())); return target; }
@Test public void testTitle() throws InterruptedException { WebElement title = console.getTitle(); assert title.getText().equals(raml.getTitle()); }