You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "John McDonnell (JIRA)" <ji...@apache.org> on 2019/08/13 22:03:00 UTC
[jira] [Commented] (NETBEANS-1748) JUnit 5 there is no posibilities
how run Repeated test method
[ https://issues.apache.org/jira/browse/NETBEANS-1748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16906657#comment-16906657 ]
John McDonnell commented on NETBEANS-1748:
------------------------------------------
No able to reproduce in NetBeans 11.1
[~Saljack] I have a maven project, and a unit test with the @RepeatedTest annotation:
{code:java}
@RepeatedTest(value = 5)
public void givenNumberOfEmployeeWhenCountEmployeeThenCountMatch() {
// given
Mockito.when(jdbcTemplate.queryForObject(Mockito.any(String.class), Mockito.eq(Integer.class))) .thenReturn(1);
// when
int countOfEmployees = employeeDAO.getCountOfEmployees();
// then
Assert.assertThat(countOfEmployees, CoreMatchers.is(1));
}{code}
I am able to execute the context actions "Run Focused Test Method" and "Debug Focused Test Method" and both work.
Can you provide a sample project if you still think this happens? Otherwise we can close this issue
> JUnit 5 there is no posibilities how run Repeated test method
> --------------------------------------------------------------
>
> Key: NETBEANS-1748
> URL: https://issues.apache.org/jira/browse/NETBEANS-1748
> Project: NetBeans
> Issue Type: Bug
> Components: java - JUnit
> Affects Versions: 10.0
> Reporter: Tomáš Poledný
> Assignee: John McDonnell
> Priority: Trivial
>
> JUnit 5 has [RepeatedTest|https://junit.org/junit5/docs/current/user-guide/#writing-tests-repeated-tests]. There is no posibilities how run method with annotation RepeatedTest (Run Focused Test Method). Error message is: No test method found. RepeatedTest methods are running after Test File only.
> Example:
> {code:java}
> class SomeRepeatedTest {
> @RepeatedTest(10)
> void repeatedTestTest() {
> System.out.println("repeatedTest");
> }
> }
> {code}
> I am not able to run test method repeatedTestTest.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists