Mani,
this has nothing to do with JBehave. You doing an assertion between to
variable, using Assert.assertThat() which in turn uses Hamcrest's Matcher.
Try experimenting with matchers in separate unit tests using the
variables that you've specified.
Cheers
On 09/09/2012 22:55, Mani Sarkar wrote:
I get the below, and can't tell why its throwing this error - I
checked the types of the two variables and they are the same yet all
the assertThat() calls return similar errors as below.
java.lang.AssertionError:
Expected: <[E1, A1, D2, G3, B4, B4, B4, e7, e5]>
got: <[E1, A1, D2, G3, B4, B4, B4, e7, e5]>
at org.junit.Assert.assertThat(Assert.java:778)
at org.junit.Assert.assertThat(Assert.java:736)
at org.jbehave.Ensure.ensureThat(Ensure.java:18)
at
com.tabplayer.domain.TabBehaviour.shouldConvertTabIntoNotesToBePlayed(TabBehaviour.java:65)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at
org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
On Fri, Sep 7, 2012 at 8:19 PM, Mauro Talevi
<mauro.tal...@aquilonia.org <mailto:mauro.tal...@aquilonia.org>> wrote:
What is your pending issue?
On 07/09/2012 17:20, Mani Sarkar wrote:
Yes I noticed that, which is why I joined the group to find out
about the intricacies of jbehave! I fixed the issues it was okay,
except for pending issue.
Thanks for the reference.
On 6 Sep 2012 23:56, "Alexander Lehmann" <alexl...@gmail.com
<mailto:alexl...@gmail.com>> wrote:
The bdd by example article is using jbehave 2, that will
require quite a bit adapting to work with a current version.
There are a few articles links at
http://jbehave.org/users-experiences.html.
On 06.09.2012 23:26, Mani Sarkar wrote:
HI,
Can anyone suggest useful Jbehave tutorials that I could
use to get
myself acquainted with the handy and powerful features of
this framework.
Any references to sites with Katas for BDD / Jbehave is
also welcome.
I have referred to one such article by Ryan Greenhall -
any such similar
tutorials available?
http://www.ryangreenhall.com/articles/bdd-by-example.html
Thanks,
Cheers,
Mani
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email