This is the test case:
public void testExportPdfWithPng() throws Exception
{
String confDir = getTestProperty("basedir");
File image;
//if statement included for compatability with maven 2 and IDEA
if (confDir == null)
{
image = new File("src/test/etc/starryNight.png");
} else
{
image = new File(confDir + "/src/test/etc/starryNight.png");
}
rpcCreateTestPage(rpcGetAdminToken());
rpcEditPage(rpcGetAdminToken(), TESTSPACE_KEY, TESTPAGE_TITLE,
TESTPAGE_TITLE, "!" + image.getName() +"!");
viewPage(TESTSPACE_KEY, TESTPAGE_TITLE);
attachFile(image, "Vincent van Gogh (1889)");
viewPage(TESTSPACE_KEY, TESTPAGE_TITLE);
clickLinkWithText("Info");
clickLinkWithText("PDF");
long imageLength = image.length();
int contentLength = getDialog().getResponse().getContentLength();
assertTrue("PDF should be bigger than included image (" +
imageLength + " bytes), but was only " + contentLength + " bytes",
contentLength > imageLength);
}
This is the error im getting:
[ stacktrace ] -----------------------------------------------------------
junit.framework.AssertionFailedError: PDF should be bigger than included
image (616766 bytes), but was only 212647 bytes
This test runs under IDEA with the same container deployed (i.e. Tomcat
5.5.17 jdk1.4 patched). This test case passes under IDEA.
Tony
vmassol wrote:
>
> Hi Tony,
>
> It's not supposed to happen. You need to give us more information so that
> we
> can be of any help. Like the error you're getting, your test case, whether
> there are any environment variables required by your tests, etc.
>
> Thanks
> -Vincent
>
>> -----Original Message-----
>> From: Tony Truong [mailto:[EMAIL PROTECTED]
>> Sent: lundi 21 août 2006 09:53
>> To: [email protected]
>> Subject: [m2] surefire and integration tests - discrepancy
>>
>>
>> Hi all,
>>
>> I am currently running functional tests with surefire + cargo and
>> IntelliJ
>> IDEA. I have set both to the same container (tomcat5).
>>
>> When the tests are executed, I seem to get failures in surefire + cargo
>> that
>> does not appear on IDEA. Could this be a test environment issue or a bug
>> in
>> surefire (or in cargo)?
>> NOTE: Both are using the same jdk + junit version.
>>
>> Tony.
>> --
>> View this message in context: http://www.nabble.com/-m2--surefire-and-
>> integration-tests---discrepancy-tf2138839.html#a5902585
>> Sent from the Maven - Users forum at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> p5.vert.ukl.yahoo.com uncompressed Mon Aug 21 07:27:01 GMT 2006
>
>
> ___________________________________________________________________________
> Découvrez un nouveau moyen de poser toutes vos questions quelque soit le
> sujet !
> Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et
> vos expériences.
> http://fr.answers.yahoo.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/-m2--surefire-and-integration-tests---discrepancy-tf2138839.html#a5902875
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]