Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2012
    Posts
    4
    Rep Power
    0

    Default what is Java assertion framework?

    what is Java assertion framework?

    please explain in detail, as i'm completely confused about what it is.

    any supplement information (online sources) are also welcomed

    TIA

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,565
    Rep Power
    12

    Default Re: what is Java assertion framework?

    *what is Java assertion framework
    And who is Google that all the swains ignore her? ;-)

    Have a read of Programming With Assertions

  3. #3
    Join Date
    Nov 2012
    Posts
    4
    Rep Power
    0

    Default Re: what is Java assertion framework?

    i know what assertions are but whats the difference between assertions and the assertion network?

  4. #4
    Vishwanath.S is offline Member
    Join Date
    Dec 2012
    Posts
    1
    Rep Power
    0

    Default Re: what is Java assertion framework?

    Quote Originally Posted by cloud9resident View Post
    what is Java assertion framework?

    please explain in detail, as i'm completely confused about what it is.

    any supplement information (online sources) are also welcomed

    TIA
    IT is Used to evaluate an Expression. .

  5. #5
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,015
    Rep Power
    20

    Default Re: what is Java assertion framework?

    Um, there's no such thing (at least as a formal name) as the "Assertion Framework" (or network, depending on how you're feeling).
    Java has assertions, as of 1.4ish...that's about it, apart from additional stuff in things like JUnit.

    You might need to be more detailed.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  6. #6
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

    Default Re: what is Java assertion framework?

    You also alternatingly refer to it as the Assertion Framework and Assertion Network. If you simply mean, how does java do assertions, then the answer is trivial.

    the assert statement in java is simply a boolean evaluator that expects the conditional statement you supply it to be true, otherwise it throws an error. For example:

    Java Code:
    assert 1 < 2;
    boolean running = true;
    assert running;
    
    assert !running; //error
    assert 1 > 2; //error

Similar Threads

  1. New java gui framework
    By Bushman in forum Reviews / Advertising
    Replies: 0
    Last Post: 05-01-2012, 07:24 AM
  2. assertion doubt
    By jomypgeorge in forum New To Java
    Replies: 3
    Last Post: 12-08-2010, 07:53 AM
  3. what is mean by java Framework?
    By makpandian in forum New To Java
    Replies: 4
    Last Post: 03-13-2009, 08:41 AM
  4. [SOLVED] about Assertion...
    By newmember in forum New To Java
    Replies: 4
    Last Post: 09-26-2008, 03:31 PM
  5. Java Plugin Framework (JPF) 1.0.2 and 1.5.1
    By levent in forum Java Software
    Replies: 0
    Last Post: 05-24-2007, 10:16 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
  •