use of org.asqatasun.entity.subject.Site in project Asqatasun by Asqatasun.
the class SiteFactoryImpl method create.
@Override
public Site create(String url) {
Site site = this.create();
site.setURL(url);
return site;
}
use of org.asqatasun.entity.subject.Site in project Asqatasun by Asqatasun.
the class AuditDAOImplTest method testRead.
public void testRead() {
Audit audit = auditDAO.read(Long.valueOf(1));
assertEquals(Long.valueOf(1), audit.getId());
assertTrue(audit.getSubject() instanceof Site);
assertEquals(Long.valueOf(1), audit.getSubject().getId());
audit = auditDAO.read(Long.valueOf(2));
assertEquals(Long.valueOf(2), audit.getId());
assertEquals(Long.valueOf(2), audit.getSubject().getId());
assertTrue(audit.getSubject() instanceof Page);
}
use of org.asqatasun.entity.subject.Site in project Asqatasun by Asqatasun.
the class Aw22Rule12071Test method setUpWebResourceMap.
@Override
protected void setUpWebResourceMap() {
getWebResourceMap().put("AW22.Test.12.7.1-4NA-01", getWebResourceFactory().createPage(getTestcasesFilePath() + "accessiweb22/Aw22Rule12071/AW22.Test.12.7.1-3NMI-01.html"));
Site site = getWebResourceFactory().createSite("file:Site-NotTested");
getWebResourceMap().put("AW22.Test.12.7.1-5NT-01", site);
Page page = getWebResourceFactory().createPage(getTestcasesFilePath() + "accessiweb22/Aw22Rule12071/AW22.Test.12.7.1-3NMI-01.html");
site.addChild(page);
getWebResourceMap().put("AW22.Test.12.7.1-5NT-01-page1", page);
page = getWebResourceFactory().createPage(getTestcasesFilePath() + "accessiweb22/Aw22Rule12071/AW22.Test.12.7.1-3NMI-01.html");
site.addChild(page);
getWebResourceMap().put("AW22.Test.12.7.1-5NT-01-page1", page);
}
use of org.asqatasun.entity.subject.Site in project Asqatasun by Asqatasun.
the class Rgaa32016Rule120201Test method setUpWebResourceMap.
@Override
protected void setUpWebResourceMap() {
getWebResourceMap().put("Rgaa32016.Test.12.02.01-4NA-01", getWebResourceFactory().createPage(getTestcasesFilePath() + "rgaa32016/Rgaa32016Rule120201/Rgaa32016.Test.12.02.01-3NMI-01.html"));
Site site = getWebResourceFactory().createSite("file:Site-NotTested");
getWebResourceMap().put("Rgaa32016.Test.12.02.01-5NT-01", site);
Page page = getWebResourceFactory().createPage(getTestcasesFilePath() + "rgaa32016/Rgaa32016Rule120201/Rgaa32016.Test.12.02.01-3NMI-01.html");
site.addChild(page);
getWebResourceMap().put("Rgaa32016.Test.12.02.01-5NT-01-page1", page);
page = getWebResourceFactory().createPage(getTestcasesFilePath() + "rgaa32016/Rgaa32016Rule120201/Rgaa32016.Test.12.02.01-3NMI-01.html");
site.addChild(page);
getWebResourceMap().put("Rgaa32016.Test.12.02.01-5NT-01-page1", page);
}
use of org.asqatasun.entity.subject.Site in project Asqatasun by Asqatasun.
the class Rgaa32016Rule120202Test method setUpWebResourceMap.
@Override
protected void setUpWebResourceMap() {
getWebResourceMap().put("Rgaa32016.Test.12.02.02-4NA-01", getWebResourceFactory().createPage(getTestcasesFilePath() + "rgaa32016/Rgaa32016Rule120202/Rgaa32016.Test.12.02.02-3NMI-01.html"));
Site site = getWebResourceFactory().createSite("file:Site-NotTested");
getWebResourceMap().put("Rgaa32016.Test.12.02.02-5NT-01", site);
Page page = getWebResourceFactory().createPage(getTestcasesFilePath() + "rgaa32016/Rgaa32016Rule120202/Rgaa32016.Test.12.02.02-3NMI-01.html");
site.addChild(page);
getWebResourceMap().put("Rgaa32016.Test.12.02.02-5NT-01-page1", page);
page = getWebResourceFactory().createPage(getTestcasesFilePath() + "rgaa32016/Rgaa32016Rule120202/Rgaa32016.Test.12.02.02-3NMI-01.html");
site.addChild(page);
getWebResourceMap().put("Rgaa32016.Test.12.02.02-5NT-01-page1", page);
}
Aggregations