Re: One of the unit tests not executed. Why?
Gary, unfortunately nobody will be able to answer that without having a look at the particular Test file. Also, I am not sure if that is a Netbeans problem. Are you able to run the tests with Maven from the shell? Best regards Andreas On Sat, 2020-12-19 at 03:32 +, Greenberg, Gary wrote: > I am working on a pretty large project. > For many of Java classes I have created Junit tests and everything > was working fine until today. > Today, I finished another class and using Tools->Create/Update Tests > generated test class for it. > The class has only two public methods but one is not finished yet. So > I deleted one test template and > updated another one to reflect the method functionality. > Compilation was successful, but when I looked through the build log, > I see that this newly added test was not executed. > I selected the class in projects and from the context menu clicked on > ‘Test’. > As a result I got this: > - > --- > BUILD FAILURE > - > --- > Total time: 19.124 s > Finished at: 2020-12-18T19:25:45-08:00 > - > --- > Failed to execute goal org.apache.maven.plugins:maven-surefire- > plugin:2.22.2:test (default-cli) on project universal-batch- > processor: No tests were executed! (Set -DfailIfNoTests=false to > ignore this error.) -> [Help 1] > > To see the full stack trace of the errors, re-run Maven with the -e > switch. > Re-run Maven using the -X switch to enable full debug logging. > > I didn’t get why the test was not executed? I do not see differences > with other test. Can anyone give me a hint? > Thanks, > Gary Greenberg > Staff Software Engineer > Data Product Development, BI-A > E: ggree...@visa.com > M: 650-269-7902 > > EmailSig-TaglineVersion >
Re: One of the unit tests not executed. Why?
Gary, unfortunately nobody will ba eable to answer that without having a look at the Test file. Also, I am not sure if that is a Netbeans problem. Are you able to run the tests with Maven from the shell? Best regards Andreas On Sat, 2020-12-19 at 03:32 +, Greenberg, Gary wrote: > I am working on a pretty large project. > For many of Java classes I have created Junit tests and everything > was working fine until today. > Today, I finished another class and using Tools->Create/Update Tests > generated test class for it. > The class has only two public methods but one is not finished yet. So > I deleted one test template and > updated another one to reflect the method functionality. > Compilation was successful, but when I looked through the build log, > I see that this newly added test was not executed. > I selected the class in projects and from the context menu clicked on > ‘Test’. > As a result I got this: > - > --- > BUILD FAILURE > - > --- > Total time: 19.124 s > Finished at: 2020-12-18T19:25:45-08:00 > - > --- > Failed to execute goal org.apache.maven.plugins:maven-surefire- > plugin:2.22.2:test (default-cli) on project universal-batch- > processor: No tests were executed! (Set -DfailIfNoTests=false to > ignore this error.) -> [Help 1] > > To see the full stack trace of the errors, re-run Maven with the -e > switch. > Re-run Maven using the -X switch to enable full debug logging. > > I didn’t get why the test was not executed? I do not see differences > with other test. Can anyone give me a hint? > Thanks, > Gary Greenberg > Staff Software Engineer > Data Product Development, BI-A > E: ggree...@visa.com > M: 650-269-7902 > > EmailSig-TaglineVersion >
One of the unit tests not executed. Why?
I am working on a pretty large project. For many of Java classes I have created Junit tests and everything was working fine until today. Today, I finished another class and using Tools->Create/Update Tests generated test class for it. The class has only two public methods but one is not finished yet. So I deleted one test template and updated another one to reflect the method functionality. Compilation was successful, but when I looked through the build log, I see that this newly added test was not executed. I selected the class in projects and from the context menu clicked on 'Test'. As a result I got this: BUILD FAILURE Total time: 19.124 s Finished at: 2020-12-18T19:25:45-08:00 Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-cli) on project universal-batch-processor: No tests were executed! (Set -DfailIfNoTests=false to ignore this error.) -> [Help 1] To see the full stack trace of the errors, re-run Maven with the -e switch. Re-run Maven using the -X switch to enable full debug logging. I didn't get why the test was not executed? I do not see differences with other test. Can anyone give me a hint? Thanks, Gary Greenberg Staff Software Engineer Data Product Development, BI-A E: ggree...@visa.com M: 650-269-7902 [EmailSig-TaglineVersion]
Netbeans menus File, Edit... do not get localized
When I run my RCP application with run.args.extra=--locale fr:FR I get my own UI menu items localized but not Netbeans ones remain in english, like bar menu headers "File" or "Edit", the action "Exit", etc. What do I miss ? I use Netbeans 12.0
Re: print before take Scanner input not working
This was introduced sometime after Maven 3.3.9 (after Netbeans 11.1). Running Netbeans 12.1 with Maven from Netbeans 11.1 is a work around. On 2020/12/16 18:11:31, "Christopher C. Lanz" wrote: > Hello, > > For many years, and both with NetBeans and with just a terminal, I have used > methods like this, to prompt the user to enter (say) an integer: > > public static int inkeyInteger( String message ){ > > System.out.print( message ); > Scanner console = new Scanner(System.in); > return console.nextInt(); > > } > > Now in NetBeans 12, this code fails - the message is not printed until after > the user supplies data to the Scanner. > > I have tried all the possible orderings of these 3 lines of code, and passing > the Scanner, etc. etc. I have searched StackOverflow. > > It can be worked around if I print the message before calling a method > containing the scanner definition and next() call. This will require changing > hundreds of method calls throughout a large program. > > Is there a workaround or patch etc.? > > > Chris Lanz > > Department of Computer Science > > 340 Dunn Hall, SUNY Potsdam > > lan...@potsdam.edu > > 315 267 2407 > > 315 268 1547 > > > Nature and nature's laws lay hid in night: > God said, Let Newton be! and all was light. (Pope) > > It did not last: the Devil howling "Ho! > Let Einstein be!" restored the status quo. (Squire) > > - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Java - System.out.print("Command: "); problem
I started this without knowing how to access or reply. This was introduced sometime after Maven 3.3.9 (after Netbeans 11.1). Running Netbeans 12.1 with Maven from Netbeans 11.1 is a work around. On 2020/09/18 14:36:33, Peter Ream wrote: > I had a java program that worked in mood.fi’s plugin in netbeans. I tried > it in Netbeans 12.0, but it would not work. Here is an example that does > not work in Netbeans 12: > > import java.util.Scanner; > > public class Main { > > public static void main(String[] args) { > > Scanner scanner = new Scanner(System.in); > while (true) { > System.out.print("Command: "); > String command = scanner.nextLine(); > System.out.println("Bye bye!"); > break; > } > } > } > } > > I have prior versions of Netbeans lying around. I found this works up > through 11.1, but does not work in 11.3. > > Any ideas? > > Thank you. > > Peter > - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists