-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBearTest.ctxt
More file actions
37 lines (37 loc) · 4.32 KB
/
Copy pathBearTest.ctxt
File metadata and controls
37 lines (37 loc) · 4.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#BlueJ class context
comment0.target=BearTest
comment0.text=\n\ Test\ class\ for\ the\ {@link\ Bear}\ class.\n\ \n\ @author\ Jackson\ Eshbaugh\n\ @version\ 02/09/2024\n
comment1.params=
comment1.target=BearTest()
comment1.text=\n\ Creates\ a\ new\ BearTest\ object.\n
comment10.params=
comment10.target=void\ testRandomness()
comment10.text=\n\ Tests\ the\ randomness\ of\ the\ random\ generation\ used\n\ to\ randomly\ generate\ a\ {@code\ Bear}'s\ {@code\ age}\n\ and\ {@code\ gender}.\n\ \n\ Generates\ 100\ random\ {@code\ Bear}\ objects.\ Then\:\n\ <ol>\n\ \ <li>Calculates\ the\ standard\ deviation\ and\ standard\ error\ of\ the\ ages\ of\ the\ {@code\ Bear}s.</li>\n\ \ <li>Ensures\ that\ the\ mean\ age\ doesn't\ exceed\ +/-\ 2\ *\ standard\ error\ (a\ 95%\ confidence\ interval).</li>\n\ \ <li>Calculates\ the\ percentages\ of\ the\ {@code\ Bear}s'\ genders.</li>\n\ </ol>\n
comment11.params=
comment11.target=void\ testToString()
comment11.text=\n\ Tests\ the\ {@link\ Bear\#toString()}\ method.\n\ Does\ the\ following\ 5\ times\:\n\ <ol>\n\ \ <li>Generates\ a\ random\ age\ and\ gender\ for\ the\ {@code\ Bear}.</li>\n\ \ <li>Creates\ the\ {@code\ Bear}\ object\ using\ the\ above\ two\ values.</li>\n\ \ <li>Ensures\ that\ the\ value\ returned\ by\ {@link\ Bear\#toString()}\ contains\n\ \ \ \ \ \ each\ value\ that\ the\ {@code\ Bear}\ was\ instantiated\ with.</li>\n\ </ol>\n
comment2.params=
comment2.target=void\ setUp()
comment2.text=\n\ Called\ before\ each\ test\ is\ run.\n
comment3.params=
comment3.target=void\ tearDown()
comment3.text=\n\ Called\ after\ each\ test\ has\ concluded\n
comment4.params=
comment4.target=void\ testDefaultConstructor()
comment4.text=\n\ Tests\ the\ default\ constructor\:\ {@link\ Bear\#Bear()}.\n\ Does\ the\ following\ three\ times\:\n\ <ol>\n\ \ <li>Create\ a\ new\ {@code\ Bear}\ using\ the\ default\ constructor.</li>\n\ \ <li>Checks\ the\ value\ of\ {@code\ age}\ to\ ensure\ it\ is\ within\ the\ expected\ range\ (0\ to\ 9).</li>\n\ \ <li>Checks\ the\ value\ of\ {@code\ gender}\ to\ ensure\ it\ is\ either\ {@code\ MALE}\ or\ {@code\ FEMALE}.</li>\n\ </ol>\n
comment5.params=
comment5.target=void\ testConstructor()
comment5.text=\n\ Tests\ the\ constructor\:\ {@link\ Bear\#Bear(int,\ Gender)}.\n\ Does\ the\ following\:\n\ <ol>\n\ \ <li>Create\ a\ new\ {@code\ Bear}\ using\ the\ above\ constructor.</li>\n\ \ <li>Checks\ the\ value\ of\ {@code\ age}\ to\ ensure\ it\ is\ the\ value\ that\ it\ was\ set\ to.</li>\n\ \ <li>Checks\ the\ value\ of\ {@code\ gender}\ to\ ensure\ it\ is\ the\ value\ that\ it\ was\ set\ to.</li>\n\ \ <li>Create\ a\ new\ {@code\ Bear}\ using\ the\ above\ constructor,\ with\ an\ age\ that\ is\ out\ of\ bounds.</li>\n\ \ <li>Check\ the\ {@code\ Bear}'s\ age,\ ensuring\ that\ is\ 9\ (the\ {@code\ Bear}'s\ maxAge)</li>\n\ \ <li>Check\ the\ {@code\ Bear}'s\ gender,\ ensuring\ that\ it\ is\ the\ value\ it\ was\ set\ to.</li>\n\ </ol>\n
comment6.params=
comment6.target=void\ testMaxAge()
comment6.text=\n\ Tests\ the\ {@link\ Bear\#maxAge()}\ method\:\n\ <ol>\n\ \ <li>Tests\ a\ {@code\ Bear}\ who's\ age\ is\ less\ than\ the\ max.</li>\n\ \ <li>Tests\ a\ {@code\ Bear}\ who's\ age\ is\ the\ max.</li>\n\ </ol>\n
comment7.params=
comment7.target=void\ testGetAge()
comment7.text=\n\ Tests\ the\ {@link\ Bear\#getAge()}\ method.\n\ Does\ the\ following\ 5\ times\:\n\ <ol>\n\ \ <li>Generates\ a\ random\ number\ between\ 0\ and\ 9\ (inclusive).</li>\n\ \ <li>Creates\ a\ new\ {@code\ Bear}\ with\ the\ randomly\ generated\ age.</li>\n\ \ <li>Ensures\ that\ the\ {@code\ Bear\#getAge()}\ method\ returns\ the\ age\ generated.</li>\n\ </ol>\n
comment8.params=
comment8.target=void\ testIncrAge()
comment8.text=\n\ Tests\ the\ {@link\ Bear\#incrAge()}\ method\:\ \n\ <ol>\n\ \ <li>Attempt\ to\ increment\ the\ age\ of\ a\ {@code\ Bear}\ who's\ age\ is\ less\ than\n\ \ \ \ \ \ {@code\ 9}\ (the\ maximum\ age\ of\ a\ {@code\ Bear}).</li>\n\ \ <li>Attempt\ to\ increment\ the\ age\ of\ a\ {@code\ Bear}\ who's\ age\ is\ {@code\ 9}.</li>\n\ </ol>\n
comment9.params=
comment9.target=void\ testGetStrength()
comment9.text=\n\ Tests\ the\ {@link\ Bear\#getStrength()}\ method.\n\ <ol>\n\ \ <li>Create\ a\ {@code\ Bear}\ of\ each\ age\ ({@code\ 0}\ to\ {@code\ 9}).</li>\n\ \ <li>Check\ each\ {@code\ Bear}'s\ strength\ to\ ensure\ that\ they\ match\ up\n\ \ \ \ \ \ with\ what\ is\ expected\ for\ strength.</li>\n\ </ol>\n
numComments=12