Re: [Lift] Using the new WebSpec
Hmmm, I had actually tried that same approach earlier and it pulls classes under net.liftweb.mocks in lift-testkit into the JAR file:
888 Mon Jan 31 15:55:16 MST 2011 net/liftweb/mocks/DoNothingFilterChain$$anonfun$doFilter$1.class
6154 Mon Jan 31 15:55:16 MST 2011 net/liftweb/mocks/DoNothingFilterChain.class
1708 Mon Jan 31 15:55:16 MST 2011 net/liftweb/mocks/MockFilterConfig.class
1123 Mon Jan 31 15:55:16 MST 2011 net/liftweb/mocks/MockHttpServletRequest$$anonfun$1.class
17177 Mon Jan 31 15:55:16 MST 2011 net/liftweb/mocks/MockHttpServletRequest$$anonfun$2.class
etc...
If having it in the net.liftweb.mocks package will make it difficult to use I could refactor it tonight to sit in net.liftweb.webmock/mockweb or something else.
Derek
On Mon, Jan 31, 2011 at 2:24 PM, Derek Chen-Becker <dchenbecker-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:Playing daddy daycare until this evening, but it's my #1 priority as soon as I can get to it.
DerekOn Jan 31, 2011 2:38 PM, David Pollak <feeder.of.the.bears-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:Feel encouraged to skip review board and just get this into master asap.
On Jan 31, 2011 1:29 PM, "Derek Chen-Becker" <dchenbecker-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:--
> Hmm, just checking the JAR on scala-tools.org, it appears that neither
> MockWeb nor WebSpec are there, although they show up in my target/classes
> directory when I build webkit. It looks like I need to fix the configuration
> of the maven-bundle-plugin, but I'm not really familiar with that enough to
> tinker with it. Let me see if one of the Maven Wizards here can tune it so
> that it's actually included prior to 2.3-M1
>
> Derek
>
> On Mon, Jan 31, 2011 at 12:32 PM, Diego Medina <diego <at> fmpwizard.com> wrote:
>
>> Hi
>>
>> I'm trying to use the new WebSpec mocks do write some unit tests and I
>> get this error:
>>
>>
>> WebSpec is not a member of net.liftweb.mocks
>>
>> This is the relevant sections on my sbt projecgt file:
>>
>> ===================
>>
>> val liftVersion = "2.3-SNAPSHOT"
>> val scalaToolsSnapshots = "Scala-Tools Maven2 Snapshots Repository"
>> at "http://scala-tools.org/repo-snapshots"
>>
>>
>> override def libraryDependencies = Set(
>> "net.liftweb" %% "lift-webkit" % liftVersion % "compile->default",
>> "net.liftweb" %% "lift-testkit" % liftVersion % "compile->default",
>> "net.liftweb" %% "lift-widgets" % liftVersion % "compile->default",
>> "net.liftweb" %% "lift-mapper" % liftVersion % "compile->default",
>> "net.liftweb" %% "lift-ldap" % liftVersion % "compile->default",
>> "net.liftweb" %% "lift-json" % liftVersion % "compile->default",
>> "org.mortbay.jetty" % "jetty" % "6.1.22" % "test->default",
>> "junit" % "junit" % "4.5" % "test->default",
>> "org.mockito" % "mockito-core" % "1.8.5" % "test->default",
>> "org.scala-tools.testing" %% "specs" % "1.6.6" % "test->default",
>> "mysql" % "mysql-connector-java" % "5.1.14" % "compile->default",
>> "ch.qos.logback" % "logback-classic" % "0.9.26" % "compile->default",
>> "commons-dbcp" % "commons-dbcp" % "1.4" % "compile->default"
>> ) ++ super.libraryDependencies
>>
>> ===============
>>
>> Inside sbt I run:
>>
>> clean
>> clean-lib
>> update
>> test
>>
>> and here I get the error.
>>
>> Thanks
>>
>> Diego
>>
>>
>>
>>
>> --
>> Diego Medina
>> Web Developer
>> http://www.fmpwizard.com
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Lift" group.
>> To post to this group, send email to liftweb-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
>> To unsubscribe from this group, send email to
>> liftweb+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<liftweb%2Bunsubscribe <at> googlegroups.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/liftweb?hl=en.
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups "Lift" group.
> To post to this group, send email to liftweb <at> googlegroups.com.
> To unsubscribe from this group, send email to liftweb+unsubscribe <at> googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
>
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to liftweb-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To unsubscribe from this group, send email to liftweb+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to liftweb-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To unsubscribe from this group, send email to liftweb+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Blog: http://goodstuff.im
Surf the harmonics
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to liftweb-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To unsubscribe from this group, send email to liftweb+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to liftweb-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to liftweb+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.

RSS Feed