Skip to content

Commit 1a8d5ab

Browse files
committed
send file fix
1 parent 7d77e36 commit 1a8d5ab

File tree

6 files changed

+3
-42
lines changed

6 files changed

+3
-42
lines changed

Features/attachment-sendfile/.settings/org.eclipse.jdt.core.prefs

Lines changed: 0 additions & 1 deletion
This file was deleted.

Features/attachment-sendfile/contracts/src/test/java/net.corda.samples.sendfile/states/InvoiceStateTests.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
package net.corda.samples.sendfile.contracts;
1+
package net.corda.samples.sendfile.states;
22

33
import net.corda.core.identity.CordaX500Name;
44
import net.corda.core.identity.Party;
5-
import net.corda.samples.sendfile.states.InvoiceState;
65
import net.corda.testing.core.TestIdentity;
76
import org.junit.Test;
87

98
import java.util.Arrays;
109

11-
import static org.jgroups.util.Util.assertEquals;
10+
import static org.junit.Assert.assertEquals;
1211

1312
public class InvoiceStateTests {
1413

@@ -20,7 +19,6 @@ public class InvoiceStateTests {
2019
@Test
2120
public void constructorTest() {
2221
InvoiceState st = new InvoiceState(STRINGID, Arrays.asList(a, b));
23-
2422
assertEquals(STRINGID, st.getInvoiceAttachmentID());
2523
}
2624

-778 KB
Binary file not shown.

Features/attachment-sendfile/workflows/src/main/java/net/corda/samples/sendfile/flows/SendAttachment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public SignedTransaction call() throws FlowException {
7070

7171
//Change the path to "../test.zip" for passing the unit test.
7272
//because the unit test are in a different working directory than the running node.
73-
String zipPath = unitTest ? "../test.zip" : "../../../../test.zip";
73+
String zipPath = unitTest ? "../test.zip" : "../../../test.zip";
7474

7575
SecureHash attachmentHash = null;
7676
try {

Features/attachment-sendfile/workflows/src/test/java/net/corda/samples/sendfile/FlowTests.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ public void tearDown() {
3535

3636
//Test #1 check attachments list has more than one element
3737
//one for contract attachment, another one for attached zip
38-
//@TODO Make sure change the file path in the SendAttachment flow to "../test.zip" for passing the unit test.
39-
//because the unit test are in a different working directory than the running node.
4038
@Test
4139
public void attachmentListHasMoreThanOneElement() throws ExecutionException, InterruptedException {
4240
CordaFuture<SignedTransaction> future = a.startFlow(new SendAttachment(b.getInfo().getLegalIdentities().get(0), true));

Features/attachment-sendfile/workflows/src/test/java/net/corda/samples/sendfile/NodeDriver.java

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)