Skip to content

Commit

Permalink
Remove the test prefix from WalletTest methods. It's unnecessary with…
Browse files Browse the repository at this point in the history
… JUnit 4.

git-svn-id: http://bitcoinj.googlecode.com/svn/trunk@123 a743e126-8abc-4207-e589-8f9b47be99bf
  • Loading branch information
hearn@google.com committed Jul 6, 2011
1 parent df86cba commit 4c9b7f5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/com/google/bitcoin/core/WalletTest.java
Expand Up @@ -85,7 +85,7 @@ private BlockPair createFakeBlock(Transaction... transactions) {
}

@Test
public void testBasicSpending() throws Exception {
public void basicSpending() throws Exception {
// We'll set up a wallet that receives a coin, then sends a coin of lesser value and keeps the change.
BigInteger v1 = Utils.toNanoCoins(1, 0);
Transaction t1 = createFakeTx(v1, myAddress);
Expand All @@ -105,7 +105,7 @@ public void testBasicSpending() throws Exception {
}

@Test
public void testSideChain() throws Exception {
public void sideChain() throws Exception {
// The wallet receives a coin on the main chain, then on a side chain. Only main chain counts towards balance.
BigInteger v1 = Utils.toNanoCoins(1, 0);
Transaction t1 = createFakeTx(v1, myAddress);
Expand All @@ -121,7 +121,7 @@ public void testSideChain() throws Exception {
}

@Test
public void testListener() throws Exception {
public void listeners() throws Exception {
final Transaction fakeTx = createFakeTx(Utils.toNanoCoins(1, 0), myAddress);
final boolean[] didRun = new boolean[1];
WalletEventListener listener = new WalletEventListener() {
Expand All @@ -139,7 +139,7 @@ public void onCoinsReceived(Wallet w, Transaction tx, BigInteger prevBalance, Bi
}

@Test
public void testBalance() throws Exception {
public void balance() throws Exception {
// Receive 5 coins then half a coin.
BigInteger v1 = toNanoCoins(5, 0);
BigInteger v2 = toNanoCoins(0, 50);
Expand Down Expand Up @@ -178,7 +178,7 @@ public void testBalance() throws Exception {
// suite.

@Test
public void testBlockChainCatchup() throws Exception {
public void blockChainCatchup() throws Exception {
Transaction tx1 = createFakeTx(Utils.toNanoCoins(1, 0), myAddress);
StoredBlock b1 = createFakeBlock(tx1).storedBlock;
wallet.receive(tx1, b1, BlockChain.NewBlockType.BEST_CHAIN);
Expand All @@ -200,7 +200,7 @@ public void testBlockChainCatchup() throws Exception {
}

@Test
public void testBalances() throws Exception {
public void balances() throws Exception {
BigInteger nanos = Utils.toNanoCoins(1, 0);
Transaction tx1 = createFakeTx(nanos, myAddress);
wallet.receive(tx1, null, BlockChain.NewBlockType.BEST_CHAIN);
Expand All @@ -213,7 +213,7 @@ public void testBalances() throws Exception {
}

@Test
public void testFinneyAttack() throws Exception {
public void finneyAttack() throws Exception {
// A Finney attack is where a miner includes a transaction spending coins to themselves but does not
// broadcast it. When they find a solved block, they hold it back temporarily whilst they buy something with
// those same coins. After purchasing, they broadcast the block thus reversing the transaction. It can be
Expand Down

0 comments on commit 4c9b7f5

Please sign in to comment.