Re: error with assertThat and isEqualTo

333 views
Skip to first unread message

Joel Costigliola

unread,
Aug 8, 2012, 4:28:59 AM8/8/12
to easyt...@googlegroups.com
probably a classpath problem ... hard to say without any context

please read the documentation : https://github.com/alexruiz/fest-assert-2.x/wiki/One-minute-starting-guide

at least if you want to be helped you should give details, a code sample, the environment used, ...

regards,

Joel

On Monday, August 6, 2012 4:02:33 PM UTC+2, Fabio Delli Carpini wrote:
Hi
 
I need to test my stand alone application but when try to assert a string I get the error below :
 
 
Exception in thread "main" java.lang.NoSuchMethodError: org.fest.util.Arrays.isArray(Ljava/lang/Object;)Z
 at org.fest.util.ToString.toStringOf(ToString.java:44)
 at org.fest.assertions.error.ShouldBeEqual.actualAndExpectedHaveSameStringRepresentation(ShouldBeEqual.java:139)
 at org.fest.assertions.error.ShouldBeEqual.newAssertionError(ShouldBeEqual.java:106)
 at org.fest.assertions.internal.Failures.failure(Failures.java:75)
 at org.fest.assertions.internal.Objects.assertEqual(Objects.java:299)
 at org.fest.assertions.api.AbstractAssert.isEqualTo(AbstractAssert.java:85)
thanks in advance for any help
 
 
 

Fabio Delli Carpini

unread,
Aug 9, 2012, 3:40:27 AM8/9/12
to easyt...@googlegroups.com
Hi
 
I have cleaned my classpath and setted as you can see in the file .classpath but now I have this error :
 
Exception in thread "main" java.lang.NoClassDefFoundError: org/fest/assertions/Description
 at org.fest.swing.finder.ComponentFinderTemplate.findComponentWith(ComponentFinderTemplate.java:115)
 at org.fest.swing.finder.FrameFinder.using(FrameFinder.java:86)
 at it.esteco.mf.test.ED.main(ED.java:57)
 
 
A piece of the code :
 
application(Frontier.class).start();

Robot robot = BasicRobot.robotWithCurrentAwtHierarchy();
FrameFixture mfFrame = findFrame(FrontierBrowser.class).using(robot);

Where am I wrong?

.classpath

Joel Costigliola

unread,
Aug 9, 2012, 4:07:38 AM8/9/12
to easyt...@googlegroups.com
Unfortunately, fest-swing is not compatible with fest-assert-2.x.
You should use the fest assert 1.x version that is compatible with fest swing (which is automatically retrieved if you use maven).

Regards,

Joel

--
You received this message because you are subscribed to the Google Groups "easytesting" group.
To view this discussion on the web visit https://groups.google.com/d/msg/easytesting/-/7hDZlaxl5GsJ.

To post to this group, send email to easyt...@googlegroups.com.
To unsubscribe from this group, send email to easytesting...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/easytesting?hl=en.

Reply all
Reply to author
Forward
0 new messages