Mercurial > hg > Members > shoshi > jungle > jungle-core
changeset 337:c90d9c64aeda
add space
author | suruga |
---|---|
date | Tue, 08 Aug 2017 18:15:27 +0900 |
parents | a8e96203367d |
children | 7a7d5d175c0c |
files | src/main/java/jp/ac/u_ryukyu/ie/cr/jungleNetwork/transaction/JungleUpdater.java src/test/java/jp/ac/u_ryukyu/ie/cr/junglenetwork/Persistent/PersistentDefaultJournalTest.java src/test/java/jp/ac/u_ryukyu/ie/cr/junglenetwork/Persistent/PersistentDifferentialJournalTest.java |
diffstat | 3 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/ie/cr/jungleNetwork/transaction/JungleUpdater.java Tue Aug 08 16:30:08 2017 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/ie/cr/jungleNetwork/transaction/JungleUpdater.java Tue Aug 08 18:15:27 2017 +0900 @@ -29,7 +29,7 @@ } editor = either.b(); } - return editor.success(); + return either; } /* @@ -47,7 +47,7 @@ } editor = either.b(); } - return editor.success(); + return either; }
--- a/src/test/java/jp/ac/u_ryukyu/ie/cr/junglenetwork/Persistent/PersistentDefaultJournalTest.java Tue Aug 08 16:30:08 2017 +0900 +++ b/src/test/java/jp/ac/u_ryukyu/ie/cr/junglenetwork/Persistent/PersistentDefaultJournalTest.java Tue Aug 08 18:15:27 2017 +0900 @@ -56,7 +56,8 @@ } JungleTreeEditor editor2 = tree2.getJungleTreeEditor(); Either<Error, JungleTreeEditor> either2 = JungleUpdater.edit(editor2, chList, treeType); - assertFalse(either2.isA()); + Either<Error, JungleTreeEditor> either3 = either2.b().success(); + assertFalse(either3.isA()); } JungleTree tree2 = jungle2.getTreeByName("hoge"); TreeNode node1 = tree1.getRootNode();
--- a/src/test/java/jp/ac/u_ryukyu/ie/cr/junglenetwork/Persistent/PersistentDifferentialJournalTest.java Tue Aug 08 16:30:08 2017 +0900 +++ b/src/test/java/jp/ac/u_ryukyu/ie/cr/junglenetwork/Persistent/PersistentDifferentialJournalTest.java Tue Aug 08 18:15:27 2017 +0900 @@ -65,7 +65,8 @@ } JungleTreeEditor editor2 = tree2.getJungleTreeEditor(); Either<Error, JungleTreeEditor> either2 = JungleUpdater.edit(editor2, chList); - assertFalse(either2.isA()); + Either<Error, JungleTreeEditor> either3 = either2.b().success(); + assertFalse(either3.isA()); } JungleTree tree2 = jungle2.getTreeByName("hoge");