Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

JBIDE-13837 KB Builder does complete scanning of content of every jar…

… file

Test is added.
  • Loading branch information...
commit 198ddd10c716d793f3cbfca6c23fa21f0665218b 1 parent b8455c8
@scabanovich scabanovich authored
Showing with 280 additions and 0 deletions.
  1. +17 −0 jsf/tests/org.jboss.tools.jsf.ui.test/projects/testJSF2Project/.classpath
  2. +37 −0 jsf/tests/org.jboss.tools.jsf.ui.test/projects/testJSF2Project/.project
  3. +11 −0 jsf/tests/org.jboss.tools.jsf.ui.test/projects/testJSF2Project/.settings/.jsdtscope
  4. +7 −0 jsf/tests/org.jboss.tools.jsf.ui.test/projects/testJSF2Project/.settings/org.eclipse.jdt.core.prefs
  5. +9 −0 jsf/tests/org.jboss.tools.jsf.ui.test/projects/testJSF2Project/.settings/org.eclipse.wst.common.component
  6. +8 −0 ...rg.jboss.tools.jsf.ui.test/projects/testJSF2Project/.settings/org.eclipse.wst.common.project.facet.core.xml
  7. +1 −0  .../org.jboss.tools.jsf.ui.test/projects/testJSF2Project/.settings/org.eclipse.wst.jsdt.ui.superType.container
  8. +1 −0  ...tests/org.jboss.tools.jsf.ui.test/projects/testJSF2Project/.settings/org.eclipse.wst.jsdt.ui.superType.name
  9. +3 −0  jsf/tests/org.jboss.tools.jsf.ui.test/projects/testJSF2Project/JavaSource/demo/Messages.properties
  10. +4 −0 jsf/tests/org.jboss.tools.jsf.ui.test/projects/testJSF2Project/JavaSource/demo/Messages_de.properties
  11. +33 −0 jsf/tests/org.jboss.tools.jsf.ui.test/projects/testJSF2Project/JavaSource/demo/User.java
  12. +34 −0 jsf/tests/org.jboss.tools.jsf.ui.test/projects/testJSF2Project/JavaSource/demo/utils/ELFunctions.java
  13. +3 −0  jsf/tests/org.jboss.tools.jsf.ui.test/projects/testJSF2Project/WebContent/META-INF/MANIFEST.MF
  14. +3 −0  ...ts/org.jboss.tools.jsf.ui.test/projects/testJSF2Project/WebContent/WEB-INF/classes/demo/Messages.properties
  15. +4 −0 ...org.jboss.tools.jsf.ui.test/projects/testJSF2Project/WebContent/WEB-INF/classes/demo/Messages_de.properties
  16. BIN  jsf/tests/org.jboss.tools.jsf.ui.test/projects/testJSF2Project/WebContent/WEB-INF/classes/demo/User.class
  17. BIN  ...rg.jboss.tools.jsf.ui.test/projects/testJSF2Project/WebContent/WEB-INF/classes/demo/utils/ELFunctions.class
  18. +28 −0 jsf/tests/org.jboss.tools.jsf.ui.test/projects/testJSF2Project/WebContent/WEB-INF/faces-config.xml
  19. BIN  ...sts/org.jboss.tools.jsf.ui.test/projects/testJSF2Project/WebContent/WEB-INF/lib/jsf-impl-2.0.1-SNAPSHOT.jar
  20. +26 −0 jsf/tests/org.jboss.tools.jsf.ui.test/projects/testJSF2Project/WebContent/WEB-INF/web.xml
  21. +7 −0 jsf/tests/org.jboss.tools.jsf.ui.test/projects/testJSF2Project/WebContent/index.jsp
  22. +11 −0 jsf/tests/org.jboss.tools.jsf.ui.test/projects/testJSF2Project/WebContent/pages/inputname.xhtml
  23. +31 −0 ...sts/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/jsp/ca/test/CAForFaceletTaglibInJSFImplJarTest.java
  24. +2 −0  jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/JsfUiAllTests.java
View
17 jsf/tests/org.jboss.tools.jsf.ui.test/projects/testJSF2Project/.classpath
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="JavaSource"/>
+ <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
+ <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
+ <classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.jboss.ide.eclipse.as.core.server.runtime.runtimeTarget/JBoss 4.2 Runtime">
+ <attributes>
+ <attribute name="owner.project.facets" value="jst.web"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
+ <attributes>
+ <attribute name="owner.project.facets" value="jst.java"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="output" path="WebContent/WEB-INF/classes"/>
+</classpath>
View
37 jsf/tests/org.jboss.tools.jsf.ui.test/projects/testJSF2Project/.project
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>testJSF2Project</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.wst.common.project.facet.core.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.jboss.tools.jst.web.kb.kbbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+ <nature>org.jboss.tools.jsf.jsfnature</nature>
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+ <nature>org.jboss.tools.jst.web.kb.kbnature</nature>
+ </natures>
+</projectDescription>
View
11 jsf/tests/org.jboss.tools.jsf.ui.test/projects/testJSF2Project/.settings/.jsdtscope
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
+ <attributes>
+ <attribute name="hide" value="true"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
+ <classpathentry kind="output" path=""/>
+</classpath>
View
7 ...org.jboss.tools.jsf.ui.test/projects/testJSF2Project/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,7 @@
+#Mon Dec 07 18:26:41 MSK 2009
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
View
9 ...oss.tools.jsf.ui.test/projects/testJSF2Project/.settings/org.eclipse.wst.common.component
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+<wb-module deploy-name="testJSFProject">
+<wb-resource deploy-path="/" source-path="/WebContent"/>
+<wb-resource deploy-path="/WEB-INF/classes" source-path="/JavaSource"/>
+<property name="context-root" value="testJSFProject"/>
+<property name="java-output-path"/>
+</wb-module>
+</project-modules>
View
8 ....ui.test/projects/testJSF2Project/.settings/org.eclipse.wst.common.project.facet.core.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+ <runtime name="JBoss 4.2 Runtime"/>
+ <fixed facet="jst.java"/>
+ <fixed facet="jst.web"/>
+ <installed facet="jst.java" version="5.0"/>
+ <installed facet="jst.web" version="2.5"/>
+</faceted-project>
View
1  ...sf.ui.test/projects/testJSF2Project/.settings/org.eclipse.wst.jsdt.ui.superType.container
@@ -0,0 +1 @@
+org.eclipse.wst.jsdt.launching.baseBrowserLibrary
View
1  ...ols.jsf.ui.test/projects/testJSF2Project/.settings/org.eclipse.wst.jsdt.ui.superType.name
@@ -0,0 +1 @@
+Window
View
3  .../org.jboss.tools.jsf.ui.test/projects/testJSF2Project/JavaSource/demo/Messages.properties
@@ -0,0 +1,3 @@
+header=Hello Demo Application
+prompt_message=Name:
+hello_message=Hello
View
4 ...g.jboss.tools.jsf.ui.test/projects/testJSF2Project/JavaSource/demo/Messages_de.properties
@@ -0,0 +1,4 @@
+header=Hello Demo Application
+prompt_message=Name:
+hello_message=Hello
+abc=xyz
View
33 jsf/tests/org.jboss.tools.jsf.ui.test/projects/testJSF2Project/JavaSource/demo/User.java
@@ -0,0 +1,33 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package demo;
+
+/**
+ * Created by JBoss Developer Studio
+ */
+public class User {
+
+ private String name;
+
+ /**
+ * @return User Name
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * @param User Name
+ */
+ public void setName(String name) {
+ this.name = name;
+ }
+}
View
34 ...g.jboss.tools.jsf.ui.test/projects/testJSF2Project/JavaSource/demo/utils/ELFunctions.java
@@ -0,0 +1,34 @@
+package demo.utils;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public final class ELFunctions {
+
+ private ELFunctions() {
+
+ }
+
+ /**
+ * returns the model for lopping
+ *
+ * @param size
+ * @return
+ */
+ public static List getLoopModel(Integer size) {
+ List list = new ArrayList();
+ for(int i = 0; i <= size; i++)
+ list.add(i);
+ return list;
+ }
+
+ /**
+ * converts string objects into an int value
+ *
+ * @param size
+ * @return
+ */
+ public static int doConvertToInteger(Object value) {
+ return Integer.valueOf(value.toString());
+ }
+}
View
3  ...ests/org.jboss.tools.jsf.ui.test/projects/testJSF2Project/WebContent/META-INF/MANIFEST.MF
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
View
3  ....jsf.ui.test/projects/testJSF2Project/WebContent/WEB-INF/classes/demo/Messages.properties
@@ -0,0 +1,3 @@
+header=Hello Demo Application
+prompt_message=Name:
+hello_message=Hello
View
4 ...f.ui.test/projects/testJSF2Project/WebContent/WEB-INF/classes/demo/Messages_de.properties
@@ -0,0 +1,4 @@
+header=Hello Demo Application
+prompt_message=Name:
+hello_message=Hello
+abc=xyz
View
BIN  ...oss.tools.jsf.ui.test/projects/testJSF2Project/WebContent/WEB-INF/classes/demo/User.class
Binary file not shown
View
BIN  ....ui.test/projects/testJSF2Project/WebContent/WEB-INF/classes/demo/utils/ELFunctions.class
Binary file not shown
View
28 .../org.jboss.tools.jsf.ui.test/projects/testJSF2Project/WebContent/WEB-INF/faces-config.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xi="http://www.w3.org/2001/XInclude"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
+ <managed-bean>
+ <description>User Name Bean</description>
+ <managed-bean-name>user</managed-bean-name>
+ <managed-bean-class>demo.User</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>name</property-name>
+ <property-class>java.lang.String</property-class>
+ <value/>
+ </managed-property>
+ </managed-bean>
+ <navigation-rule>
+ <from-view-id>/pages/inputUserName.jsp</from-view-id>
+ <navigation-case>
+ <from-outcome>hello</from-outcome>
+ <to-view-id>/pages/hello.jsp</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+ <application>
+ <locale-config/>
+ </application>
+ <factory/>
+ <lifecycle/>
+</faces-config>
View
BIN  ...s.jsf.ui.test/projects/testJSF2Project/WebContent/WEB-INF/lib/jsf-impl-2.0.1-SNAPSHOT.jar
Binary file not shown
View
26 jsf/tests/org.jboss.tools.jsf.ui.test/projects/testJSF2Project/WebContent/WEB-INF/web.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
+ <display-name>testJSFProject</display-name>
+ <context-param>
+ <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+ <param-value>server</param-value>
+ </context-param>
+ <listener>
+ <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
+ </listener>
+ <!-- Faces Servlet -->
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <!-- Faces Servlet Mapping -->
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.jsf</url-pattern>
+ </servlet-mapping>
+ <login-config>
+ <auth-method>BASIC</auth-method>
+ </login-config>
+</web-app>
View
7 jsf/tests/org.jboss.tools.jsf.ui.test/projects/testJSF2Project/WebContent/index.jsp
@@ -0,0 +1,7 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+
+<html>
+ <body>
+ <jsp:forward page="/pages/inputUserName.jsf" />
+ </body>
+</html>
View
11 ...sts/org.jboss.tools.jsf.ui.test/projects/testJSF2Project/WebContent/pages/inputname.xhtml
@@ -0,0 +1,11 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:c="http://java.sun.com/jstl/core">
+
+ <f:loadBundle basename="resources" var="msg" />
+ <f:a />
+
+</html>
View
31 ...s.jsf.ui.test/src/org/jboss/tools/jsf/jsp/ca/test/CAForFaceletTaglibInJSFImplJarTest.java
@@ -0,0 +1,31 @@
+package org.jboss.tools.jsf.jsp.ca.test;
+
+import org.jboss.tools.jst.jsp.test.ca.ContentAssistantTestCase;
+import org.jboss.tools.test.util.TestProjectProvider;
+
+public class CAForFaceletTaglibInJSFImplJarTest extends ContentAssistantTestCase{
+ TestProjectProvider provider = null;
+ private static final String PROJECT_NAME = "testJSF2Project";
+ private static final String PAGE_NAME = "/WebContent/pages/inputname.xhtml";
+
+ public void setUp() throws Exception {
+ provider = new TestProjectProvider("org.jboss.tools.jsf.ui.test", null, PROJECT_NAME, true);
+ project = provider.getProject();
+ }
+
+ protected void tearDown() throws Exception {
+ if(provider != null) {
+ provider.dispose();
+ }
+ }
+
+ public void testCAForJSFCore(){
+ String[] proposals = {
+ "f:ajax"
+ };
+
+ checkProposals(PAGE_NAME, "<f:a />", 4, proposals, false);
+
+ }
+
+}
View
2  jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/JsfUiAllTests.java
@@ -23,6 +23,7 @@
import org.jboss.tools.jsf.jsp.ca.test.CAForCompositeComponentTest;
import org.jboss.tools.jsf.jsp.ca.test.CAForELJavaAndJSTCompareTest;
import org.jboss.tools.jsf.jsp.ca.test.CAForELinStyleTest;
+import org.jboss.tools.jsf.jsp.ca.test.CAForFaceletTaglibInJSFImplJarTest;
import org.jboss.tools.jsf.jsp.ca.test.CAForIDTest;
import org.jboss.tools.jsf.jsp.ca.test.CAForInputTagSrcAttributeSuggestsFilePathsJBIDE1807Test;
import org.jboss.tools.jsf.jsp.ca.test.CAForJSF2BeanMapValuesTest;
@@ -64,6 +65,7 @@ public static Test suite() {
suite.addTestSuite(NewJSFProjectTest.class);
suite.addTestSuite(CAForUnclosedELTest.class);
suite.addTestSuite(CAForCompositeComponentTest.class);
+ suite.addTestSuite(CAForFaceletTaglibInJSFImplJarTest.class);
suite.addTestSuite(CAForJSF2BeansTest.class);
suite.addTestSuite(CAForJSF2BeanMapValuesTest.class);
suite.addTestSuite(CAForJSF2BeansInJavaTest.class);
Please sign in to comment.
Something went wrong with that request. Please try again.