GlowstoneMC / Glowstone

A fast, customizable and compatible open source server for Minecraft: Java Edition
https://glowstone.net
Other
1.9k stars 273 forks source link

Add ClearCommandTest, and refactor *CommandTest #921

Closed Pr0methean closed 6 years ago

Pr0methean commented 6 years ago

Extracts the superclass CommandTest, makes all the existing command tests extend it (some via a new helper class CommandTestWithFakePlayers), and pulls up testExecuteFailsWithoutPermission (adding it to one or two command tests that lacked it). Adds ClearCommandTest.

Pr0methean commented 6 years ago

This should be tested on either @mastercoms' or @momothereal's machine before merging, because of the recent ServerShim leakage issue.