Skip to content

Commit

Permalink
🚀 0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lingting committed Mar 2, 2021
1 parent 0e0d5ca commit 66ca8b1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<url>https://github.com/lingting-gzm/VirtualCurrency</url>

<properties>
<revision>0.4.1-SNAPSHOT</revision>
<revision>0.4.1</revision>
<scm.url>[email protected]:lingting-gzm/VirtualCurrency.git</scm.url>

<java.version>1.8</java.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@

import cn.hutool.core.lang.Assert;
import cn.hutool.core.util.StrUtil;
import com.sun.istack.internal.NotNull;

/**
* @author lingting 2021/3/2 19:37
*/
public class AssertUtils extends Assert {

public static void equals(@NotNull Object o1, Object o2) {
public static void equals(Object o1, Object o2) {
equals(o1, o2, "{} 与 {} 不一致!", o1, o2);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,9 @@ public void trc10() {
Optional<TransactionInfo> optional = service
.getTransactionByHash("96b57737c419bf5fde63119be4c116e57fb2fb0607d3cc257f7664a655af345d");


Assert.isFalse(optional.isPresent());
optional = service.getTransactionByHash("0f4fee870b87988aaf31cce1e8abeec2897efa0186b953b0a0e0738dc4aef361");


Assert.isTrue(optional.isPresent());
TransactionInfo info = optional.get();
AssertUtils.equals("0f4fee870b87988aaf31cce1e8abeec2897efa0186b953b0a0e0738dc4aef361", info.getHash());
Expand Down

0 comments on commit 66ca8b1

Please sign in to comment.