Results 1 to 2 of 2
  1. #1
    Wolfsy is offline Member
    Join Date
    Mar 2012
    Posts
    2
    Rep Power
    0

    Default JUnit Test in Eclipse

    Hi how would I test the following method in Junit in Eclipse:

    public Time(int t, int tl){
    this.time = t;
    this.timeLimit = tl;
    }


    Because so far I have:


    public void testTime()
    {
    int t, int tl = {2, 40}
    int num = Time.time;
    assertTrue


    But I am really not so sure?

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,189
    Rep Power
    19

    Default Re: JUnit Test in Eclipse

    Moved from New to Java

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. problem with JUnit test
    By exltus in forum Advanced Java
    Replies: 12
    Last Post: 12-19-2011, 07:49 PM
  2. junit test problem
    By moamen in forum Eclipse
    Replies: 2
    Last Post: 03-14-2010, 09:41 PM
  3. Replies: 1
    Last Post: 08-03-2009, 05:31 PM
  4. JUnit Test Help!
    By pharo in forum New To Java
    Replies: 0
    Last Post: 04-10-2009, 05:15 PM
  5. Junit test
    By alice in forum New To Java
    Replies: 1
    Last Post: 06-14-2008, 01:24 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •