3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-12 18:25:51 +00:00

Don't derive test classes from TestCase.

We have upgraded from JUnit 3 to JUnit 4 a while ago.
This commit is contained in:
Andreas Schildbach 2018-02-21 19:39:38 +01:00
parent 2acdb34948
commit 3ca4bd3792
3 changed files with 11 additions and 6 deletions

View File

@ -1,5 +1,6 @@
/*
* Copyright 2011 Google Inc.
* Copyright 2018 Andreas Schildbach
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -16,13 +17,16 @@
package org.bitcoinj.core;
import junit.framework.TestCase;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.math.BigInteger;
import java.util.Arrays;
public class Base58Test extends TestCase {
import org.junit.Test;
public class Base58Test {
@Test
public void testEncode() throws Exception {
byte[] testbytes = "Hello World".getBytes();

View File

@ -1,5 +1,6 @@
/*
* Copyright 2011 Google Inc.
* Copyright 2018 Andreas Schildbach
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -16,11 +17,11 @@
package org.bitcoinj.core;
import junit.framework.TestCase;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class VarIntTest extends TestCase {
public class VarIntTest {
@Test
public void testBytes() throws Exception {

View File

@ -30,11 +30,11 @@ import org.junit.runners.Parameterized;
import java.util.Arrays;
import java.util.Collection;
import static junit.framework.TestCase.assertTrue;
import static org.bitcoin.paymentchannel.Protos.TwoWayChannelMessage;
import static org.bitcoin.paymentchannel.Protos.TwoWayChannelMessage.MessageType;
import static org.easymock.EasyMock.*;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
@RunWith(Parameterized.class)
public class PaymentChannelServerTest {