-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1425 from alwin-joseph/el_restore_platform
Restore the EL javatest based branch , move EL standalone tck module to el-tck
- Loading branch information
Showing
221 changed files
with
22,699 additions
and
325 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,172 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright (c) 2024 Contributors to the Eclipse Foundation | ||
All rights reserved. | ||
This program and the accompanying materials are made available under the | ||
terms of the Eclipse Public License v. 2.0, which is available at | ||
http://www.eclipse.org/legal/epl-2.0. | ||
This Source Code may also be made available under the following Secondary | ||
Licenses when the conditions for such availability set forth in the | ||
Eclipse Public License v. 2.0 are satisfied: GNU General Public License, | ||
version 2 with the GNU Classpath Exception, which is available at | ||
https://www.gnu.org/software/classpath/license.html. | ||
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 | ||
--> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>jakarta.tck</groupId> | ||
<artifactId>project</artifactId> | ||
<version>11.0.0-M1</version> | ||
</parent> | ||
|
||
<artifactId>jakarta-expression-language-tck</artifactId> | ||
<version>6.0.1</version> | ||
<packaging>jar</packaging> | ||
|
||
<name>el-tck</name> | ||
<description>EL TCK</description> | ||
|
||
<properties> | ||
<jakarta.el-api.version>6.0.0</jakarta.el-api.version> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>jakarta.el</groupId> | ||
<artifactId>jakarta.el-api</artifactId> | ||
<version>${jakarta.el-api.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.junit.jupiter</groupId> | ||
<artifactId>junit-jupiter</artifactId> | ||
<scope>compile</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>jakarta.tck</groupId> | ||
<artifactId>sigtest-maven-plugin</artifactId> | ||
<version>2.3</version> | ||
</dependency> | ||
|
||
</dependencies> | ||
|
||
<build> | ||
<finalName>${bundle-name}-${project.version}</finalName> | ||
<resources> | ||
<resource> | ||
<directory>src/main/resources</directory> | ||
<includes> | ||
<include>LICENSE_${license}.md</include> | ||
<include>com/</include> | ||
</includes> | ||
</resource> | ||
</resources> | ||
<plugins> | ||
<!-- do not publish this artifact to Maven repositories --> | ||
<plugin> | ||
<artifactId>maven-deploy-plugin</artifactId> | ||
<configuration> | ||
<skip>true</skip> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-javadoc-plugin</artifactId> | ||
<configuration> | ||
<doclint>none</doclint> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-source-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>attach-sources</id> | ||
<goals> | ||
<goal>jar-no-fork</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-assembly-plugin</artifactId> | ||
<version>3.3.0</version> | ||
<executions> | ||
<execution> | ||
<id>distribution</id> | ||
<goals> | ||
<goal>single</goal> | ||
</goals> | ||
<phase>package</phase> | ||
<configuration> | ||
<descriptors> | ||
<descriptor>src/main/assembly/assembly.xml</descriptor> | ||
</descriptors> | ||
<escapeString>\</escapeString> | ||
<appendAssemblyId>false</appendAssemblyId> | ||
<finalName>${bundle-name}-${project.version}</finalName> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
<profiles> | ||
<profile> | ||
<id>EFTL</id> | ||
<activation> | ||
<activeByDefault>true</activeByDefault> | ||
</activation> | ||
<properties> | ||
<bundle-name>jakarta-expression-language-tck</bundle-name> | ||
<license>EFTL</license> | ||
</properties> | ||
</profile> | ||
<profile> | ||
<id>EPL</id> | ||
<properties> | ||
<bundle-name>expression-language-tck</bundle-name> | ||
<license>EPL</license> | ||
</properties> | ||
</profile> | ||
<profile> | ||
<id>record-signature</id> | ||
<activation> | ||
<activeByDefault>false</activeByDefault> | ||
</activation> | ||
<properties> | ||
<bundle-name>jakarta-expression-language-tck</bundle-name> | ||
<license>EFTL</license> | ||
</properties> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>jakarta.tck</groupId> | ||
<artifactId>sigtest-maven-plugin</artifactId> | ||
<version>2.2</version> | ||
<configuration> | ||
<FileName>${project.build.directory}/jakarta.el.sig_${project.parent.version}</FileName> | ||
<packages>jakarta.el</packages> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>generate</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
|
||
</profiles> | ||
|
||
</project> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
52 changes: 52 additions & 0 deletions
52
...ck/src/main/java/com/sun/ts/tests/el/api/jakarta_el/staticfieldelresolver/TCKELClass.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
* Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0, which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* This Source Code may also be made available under the following Secondary | ||
* Licenses when the conditions for such availability set forth in the | ||
* Eclipse Public License v. 2.0 are satisfied: GNU General Public License, | ||
* version 2 with the GNU Classpath Exception, which is available at | ||
* https://www.gnu.org/software/classpath/license.html. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 | ||
*/ | ||
|
||
/* | ||
* $Id$ | ||
*/ | ||
|
||
package com.sun.ts.tests.el.api.jakarta_el.staticfieldelresolver; | ||
|
||
public class TCKELClass { | ||
public static String firstName = "Ender"; | ||
|
||
public static String lastName = "Wiggins"; | ||
|
||
// Not writable from StaticFieldELResolver | ||
public String notStatic = "notStatic"; | ||
|
||
private static String privStatic = "privStatic"; | ||
|
||
/** | ||
* | ||
* @param firstName | ||
* - first name @String | ||
* @param lastName | ||
* - last Name | ||
* @return true is full name matches the given firstName + " " + lastName | ||
* pattern. | ||
*/ | ||
public static boolean isName(String name) { | ||
boolean result = Boolean.FALSE; | ||
|
||
if (name.equals(firstName)) { | ||
result = true; | ||
} | ||
|
||
return result; | ||
} | ||
|
||
} |
File renamed without changes.
58 changes: 58 additions & 0 deletions
58
el-tck/src/main/java/com/sun/ts/tests/el/api/jakarta_el/valueexpression/Worker.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/* | ||
* Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0, which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* This Source Code may also be made available under the following Secondary | ||
* Licenses when the conditions for such availability set forth in the | ||
* Eclipse Public License v. 2.0 are satisfied: GNU General Public License, | ||
* version 2 with the GNU Classpath Exception, which is available at | ||
* https://www.gnu.org/software/classpath/license.html. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 | ||
*/ | ||
|
||
/* | ||
* $Id$ | ||
*/ | ||
|
||
package com.sun.ts.tests.el.api.jakarta_el.valueexpression; | ||
|
||
public class Worker { | ||
private String firstName = "Doug"; | ||
|
||
private String lastName = "Donahue"; | ||
|
||
/** | ||
* @return the lastName | ||
*/ | ||
public String getLastName() { | ||
return lastName; | ||
} | ||
|
||
/** | ||
* @param lastName | ||
* the lastName to set | ||
*/ | ||
public void setLastName(String lastName) { | ||
this.lastName = lastName; | ||
} | ||
|
||
/** | ||
* @return the firstName | ||
*/ | ||
public String getFirstName() { | ||
return firstName; | ||
} | ||
|
||
/** | ||
* @param firstName | ||
* the firstName to set | ||
*/ | ||
public void setFirstName(String firstName) { | ||
this.firstName = firstName; | ||
} | ||
|
||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
62 changes: 62 additions & 0 deletions
62
el-tck/src/main/java/com/sun/ts/tests/el/common/elcontext/BarELContext.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/* | ||
* Copyright (c) 2009, 2020 Oracle and/or its affiliates and others. | ||
* All rights reserved. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0, which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* This Source Code may also be made available under the following Secondary | ||
* Licenses when the conditions for such availability set forth in the | ||
* Eclipse Public License v. 2.0 are satisfied: GNU General Public License, | ||
* version 2 with the GNU Classpath Exception, which is available at | ||
* https://www.gnu.org/software/classpath/license.html. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 | ||
*/ | ||
|
||
/* | ||
* $Id$ | ||
*/ | ||
|
||
package com.sun.ts.tests.el.common.elcontext; | ||
|
||
import com.sun.ts.tests.el.common.api.resolver.BarELResolver; | ||
|
||
import jakarta.el.ELContext; | ||
import jakarta.el.ELResolver; | ||
import jakarta.el.FunctionMapper; | ||
import jakarta.el.VariableMapper; | ||
|
||
/* This ELContext contains only a simple EL resolver used to | ||
resolve expressions handled by the BarELResolver. | ||
*/ | ||
|
||
public class BarELContext extends ELContext { | ||
|
||
private final ELResolver elResolver; | ||
|
||
/* | ||
* Constructor. | ||
*/ | ||
public BarELContext() { | ||
this.elResolver = new BarELResolver(); | ||
} | ||
|
||
public ELResolver getELResolver() { | ||
return (ELResolver) elResolver; | ||
} | ||
|
||
public ELContext getELContext() { | ||
return (ELContext) (this); | ||
} | ||
|
||
public VariableMapper getVariableMapper() { | ||
return null; | ||
} | ||
|
||
public FunctionMapper getFunctionMapper() { | ||
return null; | ||
} | ||
|
||
} |
Oops, something went wrong.