P
Petterson Mikael
Hi,
In a junit test:
public void testSendMsgWithAttachment(){
try {
SendMessage send = new SendMessage();
send.sendMsg(from, to, cc, bcc, subject, text, attachment);
fail("Test failed since no IOException was thrown");
} catch (Exception e) {
fail("Test failed du to unexpected exception" + e.toString());
}
}
The String 'attachment' is the path to attachment-file.
I have the file ( Attachment.txt) in my package structure (CVS):
net.sourceforge.app.message.test
How can I get a path as String that is possible to use in my tes ( so I
can retrieve the attachment).
cheers,
//mikael
In a junit test:
public void testSendMsgWithAttachment(){
try {
SendMessage send = new SendMessage();
send.sendMsg(from, to, cc, bcc, subject, text, attachment);
fail("Test failed since no IOException was thrown");
} catch (Exception e) {
fail("Test failed du to unexpected exception" + e.toString());
}
}
The String 'attachment' is the path to attachment-file.
I have the file ( Attachment.txt) in my package structure (CVS):
net.sourceforge.app.message.test
How can I get a path as String that is possible to use in my tes ( so I
can retrieve the attachment).
cheers,
//mikael