Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoopur Gupta2019-02-15 12:30:58 +0000
committerNoopur Gupta2019-02-15 13:09:38 +0000
commitbfb3150254bc3bc1da4c0da8e0b396317f872e3c (patch)
tree7edf3dadfca89b185332aceb8a75543a42b3a4ba
parent3c2ed903a94f926af155133cfc9a3211846e9297 (diff)
downloadeclipse.jdt.ui-bfb3150254bc3bc1da4c0da8e0b396317f872e3c.tar.gz
eclipse.jdt.ui-bfb3150254bc3bc1da4c0da8e0b396317f872e3c.tar.xz
eclipse.jdt.ui-bfb3150254bc3bc1da4c0da8e0b396317f872e3c.zip
Bug 544484: [JUnit 5][templates] Update @TestFactory template to include
DynamicNode in return type Change-Id: I13bf0c943f241f4c50ea18b95f0c7c9b17f3ced8
-rw-r--r--org.eclipse.jdt.ui/templates/default-templates.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jdt.ui/templates/default-templates.xml b/org.eclipse.jdt.ui/templates/default-templates.xml
index f26f97239d..ba0ef2aa7d 100644
--- a/org.eclipse.jdt.ui/templates/default-templates.xml
+++ b/org.eclipse.jdt.ui/templates/default-templates.xml
@@ -2,7 +2,7 @@
<!--
/*******************************************************************************
- * Copyright (c) 2000, 2017 IBM Corporation and others.
+ * Copyright (c) 2000, 2019 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -190,7 +190,7 @@ void ${testName}() throws Exception {
}</template>
<template name="test_factory" description="%Templates.testfactory_junit5" id="org.eclipse.jdt.ui.templates.testfactory_junit5" context="java-members" enabled="true" autoinsert="false">@${testfactoryType:newType(org.junit.jupiter.api.TestFactory)}
-${returnType:link('Stream&lt;DynamicNode&gt;', 'Collection&lt;DynamicNode&gt;', 'Iterable&lt;DynamicNode&gt;', 'Iterator&lt;DynamicNode&gt;')} ${testFactoryName}() throws Exception {
+${returnType:link('DynamicNode', 'Stream&lt;DynamicNode&gt;', 'Collection&lt;DynamicNode&gt;', 'Iterable&lt;DynamicNode&gt;', 'Iterator&lt;DynamicNode&gt;')} ${testFactoryName}() throws Exception {
// ${todo}: generate dynamic test cases
${cursor}return null;${typeImports:import('org.junit.jupiter.api.DynamicNode')}${staticImports:importStatic('org.junit.jupiter.api.Assertions.*', 'org.junit.jupiter.api.DynamicContainer.*', 'org.junit.jupiter.api.DynamicTest.*')}
}</template>

Back to the top