Here is the requested file.
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2412529
Testsuite: org.restlet.test.RestletTestSuite
Tests run: 18, Failures: 1, Errors: 0, Time elapsed: 2.342 sec
------------- Standard Output ---------------
[test, status]=[1a, Not Found (404) - The server has not found anything
matching the request URI]
[test, status]=[1b, Not Found (404) - The server has not found anything
matching the request URI]
------------- ---------------- ---------------
------------- Standard Error -----------------
Oct 29, 2009 9:29:00 PM com.noelios.restlet.ext.httpclient.HttpClientHelper
start
INFO: Starting the HTTP client
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:546)
at java.util.ArrayList.get(ArrayList.java:321)
at org.restlet.test.AtomTestCase.testAtom(AtomTestCase.java:80)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)
2009-10-29 21:29:01.939::INFO: Logging to STDERR via org.mortbay.log.StdErrLog
2009-10-29 21:29:01.943::INFO: jetty-6.1.18
2009-10-29 21:29:01.982::INFO: Started selectchannelconnec...@0.0.0.0:8182
2009-10-29 21:29:01.982::INFO: jetty-6.1.18
2009-10-29 21:29:01.986::INFO: Started selectchannelconnec...@0.0.0.0:8183
Oct 29, 2009 9:29:01 PM com.noelios.restlet.ext.httpclient.HttpClientHelper
start
INFO: Starting the HTTP client
Oct 29, 2009 9:29:02 PM com.noelios.restlet.LogFilter afterHandle
INFO: 2009-10-29 21:29:02 127.0.0.1 - 127.0.0.1
8182 GET /efgh - 200 12 - 5
http://localhost:8182 Noelios-Restlet-Engine/1.1snapshot -
Oct 29, 2009 9:29:02 PM com.noelios.restlet.LogFilter afterHandle
INFO: 2009-10-29 21:29:02 127.0.0.1 - 127.0.0.1
8182 GET /abcd - 404 330 - 0
http://localhost:8182 Noelios-Restlet-Engine/1.1snapshot -
Oct 29, 2009 9:29:02 PM com.noelios.restlet.LogFilter afterHandle
INFO: 2009-10-29 21:29:02 127.0.0.1 - 127.0.0.1
8183 GET /abcd - 200 12 - 0
http://localhost:8183 Noelios-Restlet-Engine/1.1snapshot -
Oct 29, 2009 9:29:02 PM com.noelios.restlet.LogFilter afterHandle
INFO: 2009-10-29 21:29:02 127.0.0.1 - 127.0.0.1
8183 GET /efgh - 404 330 - 0
http://localhost:8183 Noelios-Restlet-Engine/1.1snapshot -
2009-10-29 21:29:02.169::INFO: jetty-6.1.18
2009-10-29 21:29:02.170::INFO: Started selectchannelconnec...@0.0.0.0:8182
Oct 29, 2009 9:29:02 PM com.noelios.restlet.ext.httpclient.HttpClientHelper
start
INFO: Starting the HTTP client
Oct 29, 2009 9:29:02 PM com.noelios.restlet.LogFilter afterHandle
INFO: 2009-10-29 21:29:02 127.0.0.1 - 127.0.0.1
8182 PUT / - 200 10 10 1
http://localhost:8182 Noelios-Restlet-Engine/1.1snapshot -
Oct 29, 2009 9:29:02 PM com.noelios.restlet.local.DirectoryResource getVariants
INFO: Getting variants for :
file:////var/folders/Ho/HoIk6gbXFJa6saaDlRxwL++++TI/-Tmp-/DirectoryTestCase/tests21256812142224/
Oct 29, 2009 9:29:02 PM com.noelios.restlet.local.DirectoryResource <init>
INFO: Converted target URI:
file:////var/folders/Ho/HoIk6gbXFJa6saaDlRxwL++++TI/-Tmp-/DirectoryTestCase/tests21256812142224/
Oct 29, 2009 9:29:02 PM com.noelios.restlet.local.DirectoryResource getVariants
INFO: Getting variants for :
file:////var/folders/Ho/HoIk6gbXFJa6saaDlRxwL++++TI/-Tmp-/DirectoryTestCase/tests21256812142224/
Oct 29, 2009 9:29:02 PM com.noelios.restlet.local.DirectoryResource <init>
INFO: Converted target URI:
file:////var/folders/Ho/HoIk6gbXFJa6saaDlRxwL++++TI/-Tmp-/DirectoryTestCase/tests21256812142224/
------------- ---------------- ---------------
Testcase: testAtom took 1.587 sec
Testcase: testGetStream took 0.018 sec
Testcase: testBaseRef took 0.001 sec
Testcase: testClientAddress took 0.001 sec
Testcase: testClientAddresses took 0 sec
Testcase: testClientAgent took 0 sec
Testcase: testMethod took 0 sec
Testcase: testRedirectionRef took 0.001 sec
Testcase: testReferrerRef took 0 sec
Testcase: testResourceRef took 0 sec
Testcase: testServerAddress took 0 sec
Testcase: testServerAgent took 0 sec
Testcase: testStatus took 0 sec
Testcase: testComponentXMLConfig took 0.615 sec
Testcase: testEquals took 0 sec
Testcase: testUnEquals took 0 sec
Testcase: testGet took 0.055 sec
Testcase: testDirectory took 0.03 sec
FAILED
expected:<OK (200) - The request has succeeded> but was:<Not Found (404) - The
server has not found anything matching the request URI>
junit.framework.AssertionFailedError: expected:<OK (200) - The request has
succeeded> but was:<Not Found (404) - The server has not found anything
matching the request URI>
at
org.restlet.test.DirectoryTestCase.testDirectory(DirectoryTestCase.java:329)
at
org.restlet.test.DirectoryTestCase.testDirectory(DirectoryTestCase.java:216)
cheers
</jima>
On 27/10/2009, at 11:53 PM, Jerome Louvel wrote:
Hi Jim,
Could you send us the RestletTestSuite.txt file in "/build/temp/tests"
(or something close)? One unit test seems to be failing for you. You
can
disable the unit tests by modifying build.properties (or adding a
custom.properties file) in order to get the build working. Just change
this line:
verify: true
into
verify: false
Regarding the Maven build, it is only available for Restlet 2.0
source code.
Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com
Jim Alateras a écrit :
I am having issues building the 1.1.6 version of the distribution
using the instructions on the developer's wiki
(http://wiki.restlet.org/developers/179-restlet/240-restlet.html
). The maven build instructions don't seem quite right and the the
ant
build gives the following error
verify-ant:
verify-tests:
[mkdir] Created dir: /Users/jima/projects/restlet/restlet-1.1.6/
build/temp/test
[junit] Running com.noelios.restlet.test.NoeliosTestSuite
[junit] Tests run: 107, Failures: 0, Errors: 0, Time elapsed:
47.711 sec
[junit] Running org.restlet.test.RestletTestSuite
[junit] Tests run: 18, Failures: 1, Errors: 0, Time elapsed: 3.894
sec
BUILD FAILED
/Users/jima/projects/restlet/restlet-1.1.6/build/build.xml:1608: Test
org.restlet.test.RestletTestSuite failed
Any help in getting the maven build going would be apprciated (using
2.0.9)
cheers
</jima>
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2409151
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2411663