[jboss-svn-commits] JBL Code SVN: r6342 - in labs/jbosslabs/trunk/portal-extensions/forge-status: . src/java/org/jboss/forge/status/tools src/java/org/jboss/forge/status/tools/test

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Sep 21 09:45:47 EDT 2006


Author: wrzep
Date: 2006-09-21 09:45:41 -0400 (Thu, 21 Sep 2006)
New Revision: 6342

Added:
   labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/tools/test/
   labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/tools/test/TestDocumentation.java
   labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/tools/test/TestForum.java
   labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/tools/test/TestProject.java
   labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/tools/test/TestSupportService.java
Modified:
   labs/jbosslabs/trunk/portal-extensions/forge-status/project.xml
   labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/tools/Tools.java
Log:
http://jira.jboss.org/jira/browse/JBLAB-756
Dummy stats for productization metrics.

Pawel


Modified: labs/jbosslabs/trunk/portal-extensions/forge-status/project.xml
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-status/project.xml	2006-09-21 13:21:38 UTC (rev 6341)
+++ labs/jbosslabs/trunk/portal-extensions/forge-status/project.xml	2006-09-21 13:45:41 UTC (rev 6342)
@@ -99,6 +99,12 @@
 		<jar>jboss-annotations-ejb3.jar</jar>
         </dependency>
 
-
+	<dependency>
+		<groupId>jaxb</groupId>
+		<artifactId>JAXB2</artifactId>
+		<version>2.0</version>
+		<jar>jaxb-api.jar</jar>
+        </dependency>
+	   
     </dependencies>
 </project>

Modified: labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/tools/Tools.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/tools/Tools.java	2006-09-21 13:21:38 UTC (rev 6341)
+++ labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/tools/Tools.java	2006-09-21 13:45:41 UTC (rev 6342)
@@ -7,6 +7,7 @@
 import java.util.StringTokenizer;
 
 import org.apache.xerces.parsers.DOMParser;
+import org.jboss.forge.common.projects.test.Project;
 import org.jboss.forge.status.StatusDescriptor;
 import org.jboss.forge.status.StatusConfWatcher;
 import org.jboss.forge.status.common.Constants;
@@ -14,6 +15,7 @@
 import org.jboss.forge.status.exceptions.InvalidPluginsConfigurationException;
 import org.jboss.forge.status.service.impl.protocol.PluginConfImpl;
 import org.jboss.forge.status.service.protocol.PluginConf;
+import org.jboss.forge.status.tools.test.TestProject;
 import org.jboss.logging.Logger;
 
 import org.jboss.shotoku.ContentManager;
@@ -95,4 +97,9 @@
 
 		return pluginsConfList;
 	}
+	
+	public static Project getProject(String projectId) {
+		
+		return new TestProject();
+	}
 }

Added: labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/tools/test/TestDocumentation.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/tools/test/TestDocumentation.java	2006-09-21 13:21:38 UTC (rev 6341)
+++ labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/tools/test/TestDocumentation.java	2006-09-21 13:45:41 UTC (rev 6342)
@@ -0,0 +1,35 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.forge.status.tools.test;
+
+import org.jboss.forge.common.projects.test.Documentation;
+import org.jboss.forge.common.projects.test.DocumentationType;
+
+public class TestDocumentation extends Documentation {
+
+	public TestDocumentation(DocumentationType type) {
+		
+		this.type = type;	
+	}
+	
+}

Added: labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/tools/test/TestForum.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/tools/test/TestForum.java	2006-09-21 13:21:38 UTC (rev 6341)
+++ labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/tools/test/TestForum.java	2006-09-21 13:45:41 UTC (rev 6342)
@@ -0,0 +1,35 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.forge.status.tools.test;
+
+import org.jboss.forge.common.projects.test.Forum;
+import org.jboss.forge.common.projects.test.ForumType;
+
+public class TestForum extends Forum {
+
+	public TestForum(ForumType type) {
+		
+		this.type = type;	
+	}
+	
+}

Added: labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/tools/test/TestProject.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/tools/test/TestProject.java	2006-09-21 13:21:38 UTC (rev 6341)
+++ labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/tools/test/TestProject.java	2006-09-21 13:45:41 UTC (rev 6342)
@@ -0,0 +1,63 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.forge.status.tools.test;
+
+import java.util.ArrayList;
+
+import org.jboss.forge.common.projects.test.Documentation;
+import org.jboss.forge.common.projects.test.DocumentationType;
+import org.jboss.forge.common.projects.test.ForumType;
+import org.jboss.forge.common.projects.test.Project;
+import org.jboss.forge.common.projects.test.Forum;
+import org.jboss.forge.common.projects.test.SupportService;
+import org.jboss.forge.common.projects.test.SupportType;
+
+public class TestProject extends Project {
+
+	public TestProject() {
+		
+		id = "jbosslabs";
+		
+		jems = new ArrayList<String>();
+		jems.add("as"); jems.add("ws"); jems.add("tomcat"); jems.add("portal");
+	
+		documentation = new ArrayList<Documentation>();
+		documentation.add(new TestDocumentation(DocumentationType.MANUAL));
+		documentation.add(new TestDocumentation(DocumentationType.FAQ));
+		documentation.add(new TestDocumentation(DocumentationType.WIKI));
+		
+		downloads = null;
+		
+		forums = new ArrayList<Forum>();
+		forums.add(new TestForum(ForumType.DEV));
+		forums.add(new TestForum(ForumType.USER));
+		
+		issueTracker = null;
+		repository = null;
+		
+		supportServices = new ArrayList<SupportService>();
+		supportServices.add(new TestSupportService(SupportType.SUPPORT));
+		supportServices.add(new TestSupportService(SupportType.TRAINING));
+	}
+	
+}

Added: labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/tools/test/TestSupportService.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/tools/test/TestSupportService.java	2006-09-21 13:21:38 UTC (rev 6341)
+++ labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/tools/test/TestSupportService.java	2006-09-21 13:45:41 UTC (rev 6342)
@@ -0,0 +1,35 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.forge.status.tools.test;
+
+import org.jboss.forge.common.projects.test.SupportType;
+import org.jboss.forge.common.projects.test.SupportService;
+
+public class TestSupportService extends SupportService {
+
+	public TestSupportService(SupportType type) {
+		
+		this.type = type;	
+	}
+	
+}




More information about the jboss-svn-commits mailing list