[jira] [Commented] (NETBEANS-1748) JUnit 5 there is no posibilities how run Repeated test method

2019-08-14 Thread John McDonnell (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-1748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16907038#comment-16907038
 ] 

John McDonnell commented on NETBEANS-1748:
--

Perfect, thanks [~Saljack] for checking

> 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
> Fix For: 11.0
>
>
> 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-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Commented] (NETBEANS-1748) JUnit 5 there is no posibilities how run Repeated test method

2019-08-13 Thread JIRA


[ 
https://issues.apache.org/jira/browse/NETBEANS-1748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16906909#comment-16906909
 ] 

Tomáš Poledný commented on NETBEANS-1748:
-

It works right now. There were some fixes for JUnit 5 so maybe it was fixed 
there. Thanks

> 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-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Commented] (NETBEANS-1748) JUnit 5 there is no posibilities how run Repeated test method

2019-08-13 Thread John McDonnell (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-1748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists