Commit graph

73 commits

Author SHA1 Message Date
Jordan Irwin
ca1102ae2f Add NPCTestHelper class 2023-01-31 11:34:18 -08:00
Jordan Irwin
34502e2b96 Add pouch slot to PlayerTestHelper 2023-01-27 16:35:07 -08:00
Hendrik Brummermann
e1501c9610 defined dressed_entity RPClass in PlayerTestHelper 2021-10-09 01:35:25 +02:00
Jordan Irwin
6bdbc1669d Re-order layer arguments of Outfit constructor in order of draw priority 2019-10-24 23:46:42 -07:00
Jordan Irwin
876b8382b0 Overload DressedEntity.setOutfit 2019-10-24 23:46:42 -07:00
Jordan Irwin
995b3bc2ed Overload PlayerTestHelper.resetNPC to allow SpeakerNPC as parameter 2018-11-02 23:47:45 +00:00
Hendrik Brummermann
257b1f9814 automatic code cleanup 2017-05-28 01:03:01 +02:00
Balaur
8cd74cf3f1 Bug 5284 - FishSoupForHughie ambiguous state transition during junit
- Fixed all affected tests by configuring zones before and removing the NPCs after
2016-03-06 18:54:24 +02:00
balaur
818eae8db4 Fixed parameter usage for setting past time on a quest slot. 2014-12-20 18:56:43 +00:00
Katie Russell
d28b1c4b27 fix javadoc - missing return type 2011-11-12 11:35:29 +00:00
Markus
e54269977f add a condition to check if a player has an item in a specified slot 2011-10-08 13:05:28 +00:00
Martin Fuchs
20117f89b5 adjust package names in imports 2011-05-01 19:50:10 +00:00
Martin Fuchs
a395019f23 add a new equipWithItem() overload which can also set info strings 2011-01-14 23:39:38 +00:00
Martin Fuchs
9b095777cd move getPrivateReply() to PlayerTestHelper 2011-01-09 17:01:05 +00:00
Martin Fuchs
12577a2355 make setPastTime() static 2011-01-07 01:16:42 +00:00
Katie Russell
990d902be3 fix broken javadoc - wrong parameter 2011-01-06 19:44:34 +00:00
Martin Fuchs
f959777080 finish the milling test case with Jenny 2011-01-06 18:43:06 +00:00
Martin Fuchs
b04d07fefc introduce GreetingMatchesNameCondition to greet NPCs by name, so they can be kept apart when in the same area 2010-12-29 15:02:25 +00:00
Martin Fuchs
20fccfed2a unregister player names 2010-12-28 17:56:57 +00:00
Hendrik Brummermann
c9e3478cc8 added licence block 2010-09-19 01:29:21 +00:00
Katie Russell
80712a4bd0 update tests which use Outfit as there is an extra layer, didn't add tests to the OutfitTest though 2010-09-16 20:54:33 +00:00
Markus
326bd16187 remove buddy handling via keyed slot (fixes #3041136 and #3048702) 2010-08-21 09:44:26 +00:00
Markus
369b12ddf2 repair PlayerTestHelper "NoSuchElementError" 2009-07-04 14:06:56 +00:00
Astrid Sawatzky
e83d720991 moving transformer of Player from PlayerRpclass to new Class PlayerTransformer 2009-06-05 08:09:16 +00:00
Astrid Sawatzky
dcfdd54ac7 removed empty methods and call of it 2009-05-05 21:00:21 +00:00
Astrid Sawatzky
5ec6d7348c refactored onequip et al.
moved all logic into rpentity
removed actionManager interface and DefaultactionManage (one singleton gone, yay)
2009-03-14 19:50:53 +00:00
Astrid Sawatzky
983e63b662 javadoc, removed unused imports 2009-01-19 12:45:25 +00:00
Astrid Sawatzky
cf534e6780 playerTestHelper.create("") uses playercreation from game .
privatetextmockingtestplayer removed
2009-01-17 20:19:08 +00:00
Astrid Sawatzky
2f120e0d3b make params final 2008-10-20 13:27:01 +00:00
Hendrik Brummermann
05c00fc26f new method dumpQuests to help debugging tests. 2008-08-23 23:38:02 +00:00
Astrid Sawatzky
99ca1c838b brooming , add final parameter where possible.
code format.
2008-07-12 14:44:47 +00:00
Astrid Sawatzky
c222d451b3 javadoc 2008-06-21 20:39:43 +00:00
Astrid Sawatzky
3363a98e2f use setter instead of put() where possible 2008-03-28 22:19:09 +00:00
Astrid Sawatzky
c545f6167e adding stateorientated quest test for crownforthewannebeking
adding lib hamcrest all for more predefined matchers for junit
2008-03-11 12:27:52 +00:00
Astrid Sawatzky
ca39b72c72 remove unused imports 2008-02-20 01:05:47 +00:00
Astrid Sawatzky
8e0624711b avoid attribute not found exception when player has no id 2008-02-20 01:04:58 +00:00
Astrid Sawatzky
b4d2e8ff64 avoid registering rpclasses twice.
i hope i found them all
2008-01-27 16:27:47 +00:00
Martin Fuchs
85897efe8c remove unneeded reference to own class name 2008-01-27 14:17:10 +00:00
Martin Fuchs
869f8b2140 use RPClass.hasRPClass() to check for already registered RPClasses 2008-01-27 12:51:27 +00:00
Martin Fuchs
e0c8804566 remove unused imports 2008-01-24 21:29:03 +00:00
Astrid Sawatzky
1e1304ebb1 introducing Singleton repository as a first step out of singleton / test hell 2008-01-22 22:25:41 +00:00
Astrid Sawatzky
2b71f6fc4e cosmetics, as unnecessary casts,
unnecessary subclassing and code format
2008-01-20 19:16:58 +00:00
Martin Fuchs
91fa8cb5ba move common test initialization code into base classes PlayerTestBase and NPCTestBase 2008-01-20 13:41:31 +00:00
Martin Fuchs
2b1a9a4722 add equipWithItem() 2008-01-20 10:08:17 +00:00
Martin Fuchs
4774f014cb remove usused import statement 2008-01-19 10:14:32 +00:00
Astrid Sawatzky
6008287c21 add empty PlayerSlots so also in test things can be taken out of it 2008-01-18 20:43:12 +00:00
Astrid Sawatzky
e35ad350d6 removed possibility to create unnamed player via PlayerTestHelper 2008-01-18 16:34:40 +00:00
Astrid Sawatzky
d088c7f9e0 reverting changes marriage test still fails 2008-01-14 22:16:25 +00:00
Astrid Sawatzky
2f23e393a6 createPlayer() returns Player that override registerTheNewNameInTheConversationParserWordList to avoid dbaccess in tests 2008-01-14 14:50:41 +00:00
Astrid Sawatzky
caece62930 javadoc and code format 2008-01-11 16:59:54 +00:00