This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 262710 - The Create Tests dialogue should not give a warning if the test ends with just "Test"
Summary: The Create Tests dialogue should not give a warning if the test ends with jus...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: TestNG (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-07 08:26 UTC by stachenov
Modified: 2016-07-07 08:26 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description stachenov 2016-07-07 08:26:32 UTC
How to reproduce:

- Create a class with some name, say, MyClass.
- Press Ctrl+Alt+T to create a test class.
- Choose TestNG.
- Change the test class name from MyClassNGTest to MyClassTest.

The dialogue gives a warning:

You will not be able to navigate between the test class and the tested class if a non-default name is used.

In fact, navigation works just fine, and adding NG feels like exposing implementation details.

IMO the warning should be displayed only if the suffix is neither NGTest nor Test, irregardless of which testing framework is selected.