Skip to content

Commit

Permalink
finish tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alyssaruth committed Aug 20, 2024
1 parent b4b1a63 commit 3e7f8a5
Show file tree
Hide file tree
Showing 17 changed files with 57 additions and 8 deletions.
1 change: 0 additions & 1 deletion client/src/main/kotlin/help/FundamentalsTheDeck.kt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ class FundamentalsTheDeck : HelpPanel(), Registry {
title.text = "The Deck"
title.foreground = EntropyColour.COLOUR_HELP_TITLE
title.font = Font("Tahoma", Font.BOLD, 18)
title.isEditable = false
title.setBounds(21, 25, 165, 30)
add(title)
clubLabel.horizontalAlignment = SwingConstants.CENTER
Expand Down
1 change: 0 additions & 1 deletion client/src/main/kotlin/help/MiscCheatCodes.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ class MiscCheatCodes : HelpPanel() {
title.text = "Cheat Codes"
title.foreground = EntropyColour.COLOUR_HELP_TITLE
title.font = Font("Tahoma", Font.BOLD, 18)
title.isEditable = false
title.setBounds(21, 25, 192, 30)
add(title)
paneIntro.font = Font("SansSerif", Font.PLAIN, 14)
Expand Down
1 change: 0 additions & 1 deletion client/src/main/kotlin/help/MiscClearingSaveData.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class MiscClearingSaveData : HelpPanel() {
title.text = "Clearing Saved Data"
title.foreground = EntropyColour.COLOUR_HELP_TITLE
title.font = Font("Tahoma", Font.BOLD, 18)
title.isEditable = false
title.setBounds(21, 25, 192, 30)
add(title)
val lblNewLabel = JLabel("")
Expand Down
4 changes: 0 additions & 4 deletions client/src/main/kotlin/help/RulesEntropyBidding.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,22 @@ class RulesEntropyBidding : HelpPanel() {
paneOne.text =
"<html>A round starts with the first person to play bidding. At the start of a new game, the round is started by a player chosen at random. In each subsequent round the loser of the previous round starts, unless losing the last round caused them to go out. In this case, the person to the left of the losing player starts the next round.\r\n<br><br>\r\nEach bid must be a suit and a number, for example \"2 Spades\". Each subsequent bid must be higher than the last, including adhering to the suit <u><font color=\"blue\">order</font></u>. Bidding continues clockwise round the players. At any point a player may opt to <u><font color=\"blue\">challenge</font></u> the current bid rather than making a higher bid of their own.</html>"
paneOne.setBounds(21, 54, 429, 220)
paneOne.isEditable = false
add(paneOne)
paneTwo.font = Font("SansSerif", Font.PLAIN, 14)
paneTwo.contentType = "text/html"
paneTwo.text =
"A bid is higher than another if the number is higher or if the number is equal and the suit is higher. For example, \"3 Hearts\" is higher than \"2 Hearts\", as 3 is greater than 2. \"3 Hearts\" is lower than \"3 Spades\" because spades is a higher suit than hearts. "
paneTwo.setBounds(21, 313, 429, 100)
paneTwo.isEditable = false
add(paneTwo)
title.foreground = EntropyColour.COLOUR_HELP_TITLE
title.font = Font("Tahoma", Font.BOLD, 18)
title.text = "Bidding"
title.setBounds(21, 25, 159, 30)
title.isEditable = false
add(title)
subtitle.text = "Bid Hierarchy"
subtitle.foreground = EntropyColour.COLOUR_HELP_TITLE
subtitle.font = Font("Tahoma", Font.BOLD, 18)
subtitle.setBounds(21, 284, 159, 30)
subtitle.isEditable = false
add(subtitle)

finaliseComponents()
Expand Down
1 change: 0 additions & 1 deletion client/src/main/kotlin/help/RulesEntropyChallenging.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ class RulesEntropyChallenging : HelpPanel() {
title.text = "Challenging"
title.foreground = EntropyColour.COLOUR_HELP_TITLE
title.font = Font("Tahoma", Font.BOLD, 18)
title.isEditable = false
title.setBounds(21, 25, 216, 30)
add(title)

Expand Down
2 changes: 2 additions & 0 deletions client/src/main/kotlin/help/ToolsGameplaySettings.kt
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ class ToolsGameplaySettings : HelpPanel(), Registry {
)
playBlindImage.setBounds(128, 114, 199, 157)
blindPanel.add(playBlindImage)

finaliseComponents()
}

override fun refresh() {
Expand Down
5 changes: 5 additions & 0 deletions client/src/test/kotlin/help/FundamentalsGlossaryTest.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package help

class FundamentalsGlossaryTest : AbstractHelpPanelTest<FundamentalsGlossary>() {
override fun factory() = FundamentalsGlossary()
}
5 changes: 5 additions & 0 deletions client/src/test/kotlin/help/FundamentalsTheDeckTest.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package help

class FundamentalsTheDeckTest : AbstractHelpPanelTest<FundamentalsTheDeck>() {
override fun factory() = FundamentalsTheDeck()
}
5 changes: 5 additions & 0 deletions client/src/test/kotlin/help/MiscBugReportTest.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package help

class MiscBugReportTest : AbstractHelpPanelTest<MiscBugReport>() {
override fun factory() = MiscBugReport()
}
5 changes: 5 additions & 0 deletions client/src/test/kotlin/help/MiscCheatCodesTest.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package help

class MiscCheatCodesTest : AbstractHelpPanelTest<MiscCheatCodes>() {
override fun factory() = MiscCheatCodes()
}
5 changes: 5 additions & 0 deletions client/src/test/kotlin/help/MiscClearingSaveDataTest.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package help

class MiscClearingSaveDataTest : AbstractHelpPanelTest<MiscClearingSaveData>() {
override fun factory() = MiscClearingSaveData()
}
5 changes: 5 additions & 0 deletions client/src/test/kotlin/help/RulesEntropyBiddingTest.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package help

class RulesEntropyBiddingTest : AbstractHelpPanelTest<RulesEntropyBidding>() {
override fun factory() = RulesEntropyBidding()
}
5 changes: 5 additions & 0 deletions client/src/test/kotlin/help/RulesEntropyChallengingTest.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package help

class RulesEntropyChallengingTest : AbstractHelpPanelTest<RulesEntropyChallenging>() {
override fun factory() = RulesEntropyChallenging()
}
5 changes: 5 additions & 0 deletions client/src/test/kotlin/help/RulesEntropyIntroductionTest.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package help

class RulesEntropyIntroductionTest : AbstractHelpPanelTest<RulesEntropyIntroduction>() {
override fun factory() = RulesEntropyIntroduction()
}
5 changes: 5 additions & 0 deletions client/src/test/kotlin/help/RulesVectropyIntroductionTest.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package help

class RulesVectropyIntroductionTest : AbstractHelpPanelTest<RulesVectropyIntroduction>() {
override fun factory() = RulesVectropyIntroduction()
}
5 changes: 5 additions & 0 deletions client/src/test/kotlin/help/ToolsGameplaySettingsTest.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package help

class ToolsGameplaySettingsTest : AbstractHelpPanelTest<ToolsGameplaySettings>() {
override fun factory() = ToolsGameplaySettings()
}
5 changes: 5 additions & 0 deletions client/src/test/kotlin/help/ToolsReplayViewerTest.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package help

class ToolsReplayViewerTest : AbstractHelpPanelTest<ToolsReplayViewer>() {
override fun factory() = ToolsReplayViewer()
}

0 comments on commit 3e7f8a5

Please sign in to comment.