001package org.w3.ldp.testsuite.reporter; 002 003import java.util.ArrayList; 004import java.util.HashMap; 005import java.util.List; 006import java.util.Map; 007 008import org.w3.ldp.testsuite.test.BasicContainerTest; 009import org.w3.ldp.testsuite.test.DirectContainerTest; 010import org.w3.ldp.testsuite.test.IndirectContainerTest; 011import org.w3.ldp.testsuite.test.LdpTest; 012import org.w3.ldp.testsuite.test.MemberResourceTest; 013import org.w3.ldp.testsuite.test.NonRDFSourceTest; 014 015public class RunLdpEarlTestManifest { 016 017private static final List<String> conformanceLevels = new ArrayList<String>(); 018private static Map<Class<?>, String> classes = new HashMap<Class<?>, String>(); 019 020 public static void main(String[] args) { 021 conformanceLevels.add(LdpTest.MUST); 022 conformanceLevels.add(LdpTest.SHOULD); 023 conformanceLevels.add(LdpTest.MAY); 024 025 Class<BasicContainerTest> bcTest = BasicContainerTest.class; 026 Class<IndirectContainerTest> indirectContainerTest = IndirectContainerTest.class; 027 Class<DirectContainerTest> directContianerTest = DirectContainerTest.class; 028 Class<MemberResourceTest> memberResourceTest = MemberResourceTest.class; 029 Class<NonRDFSourceTest> nonRdfSourceTest = NonRDFSourceTest.class; 030 031 classes.put(bcTest, "BasicContainer:LDP Basic Container tests."); 032 classes.put(nonRdfSourceTest, "Non-RDFSource:LDP Non-RDF Source tests."); 033 classes.put(memberResourceTest, "RDFSource:LDP RDF Source tests."); 034 classes.put(directContianerTest, "DirectContainer:LDP Direct Container tests."); 035 classes.put(indirectContainerTest, "IndirectContainer:LDP Indirect Container tests."); 036 037 LdpEarlTestManifest manifest = new LdpEarlTestManifest(); 038 manifest.setConformanceLevels(conformanceLevels); 039 manifest.generate(classes, ""); // gives the default filename for Earl Manifest 040 } 041 042}