diff --git a/src/it/projects/evaluate-null-object-with-output/invoker.properties b/src/it/projects/evaluate-null-object-with-output/invoker.properties new file mode 100644 index 0000000..e9c555f --- /dev/null +++ b/src/it/projects/evaluate-null-object-with-output/invoker.properties @@ -0,0 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +invoker.goals = ${project.groupId}:${project.artifactId}:${project.version}:evaluate diff --git a/src/it/projects/evaluate-null-object-with-output/pom.xml b/src/it/projects/evaluate-null-object-with-output/pom.xml new file mode 100644 index 0000000..2ceb885 --- /dev/null +++ b/src/it/projects/evaluate-null-object-with-output/pom.xml @@ -0,0 +1,28 @@ + + + + + + 4.0.0 + + org.apache.maven.its.help + test + 1.0 + diff --git a/src/it/projects/evaluate-null-object-with-output/test.properties b/src/it/projects/evaluate-null-object-with-output/test.properties new file mode 100644 index 0000000..4856d8e --- /dev/null +++ b/src/it/projects/evaluate-null-object-with-output/test.properties @@ -0,0 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +expression = some.invalid.property +output = result.txt diff --git a/src/it/projects/evaluate-null-object-with-output/verify.groovy b/src/it/projects/evaluate-null-object-with-output/verify.groovy new file mode 100644 index 0000000..b8feaea --- /dev/null +++ b/src/it/projects/evaluate-null-object-with-output/verify.groovy @@ -0,0 +1,23 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +def result = new File(basedir, 'result.txt').text; +assert result == 'null object or invalid expression' + +return true; diff --git a/src/it/projects/evaluate-null-object/invoker.properties b/src/it/projects/evaluate-null-object/invoker.properties new file mode 100644 index 0000000..e9c555f --- /dev/null +++ b/src/it/projects/evaluate-null-object/invoker.properties @@ -0,0 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +invoker.goals = ${project.groupId}:${project.artifactId}:${project.version}:evaluate diff --git a/src/it/projects/evaluate-null-object/pom.xml b/src/it/projects/evaluate-null-object/pom.xml new file mode 100644 index 0000000..2ceb885 --- /dev/null +++ b/src/it/projects/evaluate-null-object/pom.xml @@ -0,0 +1,28 @@ + + + + + + 4.0.0 + + org.apache.maven.its.help + test + 1.0 + diff --git a/src/it/projects/evaluate-null-object/test.properties b/src/it/projects/evaluate-null-object/test.properties new file mode 100644 index 0000000..a5c6a32 --- /dev/null +++ b/src/it/projects/evaluate-null-object/test.properties @@ -0,0 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +expression = some.invalid.property diff --git a/src/it/projects/evaluate-null-object/verify.groovy b/src/it/projects/evaluate-null-object/verify.groovy new file mode 100644 index 0000000..a26b256 --- /dev/null +++ b/src/it/projects/evaluate-null-object/verify.groovy @@ -0,0 +1,23 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +def result = new File(basedir, 'build.log').text; +assert result.contains( 'null object or invalid expression' ) + +return true;