Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8015043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T20:08:08+00:00 2026-06-04T20:08:08+00:00

I want to preform a JUnit tests on my application. I’ve never done JUnit

  • 0

I want to preform a JUnit tests on my application. I’ve never done JUnit testing before so I have a couple of (maybe trivial) questions:

  1. Where should I put a test class? I came across with this thread:
    Where should I put my JUnit tests?,
    and the guy that answers the question is referring to maven projects, but I don’t use maven. He explains (in the thread I linked above) that he puts the test class in a different location but in the same package. How can it be done in a GWT project?

  2. How should I execute these tests once they are ready (where in the code to put the execution)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T20:08:10+00:00Added an answer on June 4, 2026 at 8:08 pm

    You should begin by reviewing this: Unit Testing GWT Applications with JUnit.

    1. The other thread is good and reflects the typical JUnit practice, and isn’t specific to maven: use a mirror of your package tree under a directory called test. So for instance if your GWT EntryPoint module is located in this directory structure:

      project/src/com/myproject/mypackage/MyEntryPoint.java
      

      Then your test code will be here:

      project/test/com/myproject/mypackage/MyEntryPointTests.java
      

      If you’ve created your GWT project using webAppCreator then you should already have a test directory containing the package structure as described.

    2. If you use webAppCreator to create your project, the project can be created with unit testing built-in like so:

      webAppCreator -junit -out MyProject com.myproject.mypackage.MyEntryPoint
      

      This will create a test target. If you’re using Eclipse, then you should have a Run selection for: Run As -> GWT Unit Test for running your tests.

      If you’re using ant instead of Eclipse then this should run your unit tests:

      ant test
      

      If you didn’t use -junit to create the project, the test targets are typically still there, just commented out. Search junit in build.xml to find the targets, and un-comment them.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I Have a LinkButton when clicked I want to preform an operation inside the
I have an animation that I want to happen before an action is called.
I have a series of functional tests against a web application that correctly run,
So I have a test case that I want to make into a thread.
Simple question, but is the solution? I have a typical C# Application that runs
I have been using Rapidminer and created a series of processes which preform a
I want to preform a Toast when a background task is completed, just to
I have a List of Tasks that a user can preform. Each one will
I'm new to build automation and Continuous Integration, but have done extensive research on
I am thinking about developing Winforms application that would use c library to preform

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.