
Hi eveybody i am trying to understand the the class java.util.Assert. Is there anyway to catch AssertionError???. Preset i am using the following code to catch AssertinError.But it is not working.
ArrayList list1 = new ArrayList(); list1.add(10); try{ Assert.isEmpty(list1); } catch(Exception e){ String str = e.getMessage(); }
Please suggest me a way.
Thanks, Ugandhar
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.