Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.pokersource.game.test
Class DeckTest  view DeckTest download DeckTest.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.pokersource.game.test.DeckTest
All Implemented Interfaces:
junit.framework.Test

public class DeckTest
extends junit.framework.TestCase

Tests to ensure compatibility with the C-language macros.


Field Summary
private  int index2c
           
private  int index2d
           
private  int index2h
           
private  int index2s
           
private  int indexAc
           
private  int indexAd
           
private  int indexAh
           
private  int indexAs
           
private  int indexJoker
           
private  long mask2c
           
private  long mask2d
           
private  long mask2h
           
private  long mask2s
           
private  long maskAc
           
private  long maskAd
           
private  long maskAh
           
private  long maskAs
           
private  long maskJoker
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
DeckTest(java.lang.String name)
           
 
Method Summary
static void main(java.lang.String[] args)
           
protected  void setUp()
          Sets up the fixture, for example, open a network connection.
 void testCardMaskString()
           
 void testCardString()
           
 void testCreateCardIndex()
           
 void testCreateCardMask()
           
 void testParseCardMask()
           
 void testParseRank()
           
 void testParseSuit()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

indexAs

private int indexAs

indexAh

private int indexAh

indexAd

private int indexAd

indexAc

private int indexAc

index2s

private int index2s

index2h

private int index2h

index2d

private int index2d

index2c

private int index2c

indexJoker

private int indexJoker

maskAs

private long maskAs

maskAh

private long maskAh

maskAd

private long maskAd

maskAc

private long maskAc

mask2s

private long mask2s

mask2h

private long mask2h

mask2d

private long mask2d

mask2c

private long mask2c

maskJoker

private long maskJoker
Constructor Detail

DeckTest

public DeckTest(java.lang.String name)
Method Detail

main

public static void main(java.lang.String[] args)

setUp

protected void setUp()
Description copied from class: junit.framework.TestCase
Sets up the fixture, for example, open a network connection. This method is called before a test is executed.


testCreateCardIndex

public void testCreateCardIndex()

testCreateCardMask

public void testCreateCardMask()

testParseCardMask

public void testParseCardMask()

testCardString

public void testCardString()

testParseRank

public void testParseRank()

testParseSuit

public void testParseSuit()

testCardMaskString

public void testCardMaskString()