diff options
| author | Noopur Gupta | 2019-02-15 12:30:58 +0000 |
|---|---|---|
| committer | Noopur Gupta | 2019-02-15 13:09:38 +0000 |
| commit | bfb3150254bc3bc1da4c0da8e0b396317f872e3c (patch) | |
| tree | 7edf3dadfca89b185332aceb8a75543a42b3a4ba | |
| parent | 3c2ed903a94f926af155133cfc9a3211846e9297 (diff) | |
| download | eclipse.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.xml | 4 |
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<DynamicNode>', 'Collection<DynamicNode>', 'Iterable<DynamicNode>', 'Iterator<DynamicNode>')} ${testFactoryName}() throws Exception { +${returnType:link('DynamicNode', 'Stream<DynamicNode>', 'Collection<DynamicNode>', 'Iterable<DynamicNode>', 'Iterator<DynamicNode>')} ${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> |
