1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-02 17:00:11 -09:00

Two new scenarious. log4j properties in tests.

This commit is contained in:
magenoxx 2011-02-25 20:55:28 +03:00
parent e9c2decd3c
commit b5e3d46c72
3 changed files with 84 additions and 0 deletions
Mage.Tests

29
Mage.Tests/scenario6.txt Normal file
View file

@ -0,0 +1,29 @@
# Test killing with Lavaclaw Reaches with X: +1\+0 ability
### ComputerA ###
# Battlefield
battlefield:ComputerA:Island:2
battlefield:ComputerA:Mountain:3
battlefield:ComputerA:Dragonskull Summit:1
battlefield:ComputerA:Lavaclaw Reaches:1
# Hand
hand:ComputerA:Mountain:1
# Library
# from down to top
library:ComputerA:clear:0
library:ComputerA:Mountain:15
# Life
player:ComputerA:life:5
### ComputerB ###
# Battlefield
battlefield:ComputerB:Plains:1
# Hand
hand:ComputerB:Plains:2
# Library
# from down to top
library:ComputerB:clear:0
library:ComputerB:Plains:10
# Life
player:ComputerB:life:5

33
Mage.Tests/scenario7.txt Normal file
View file

@ -0,0 +1,33 @@
# Test bug with no action from AI
### ComputerA ###
# Battlefield
battlefield:ComputerA:Mountain:2
battlefield:ComputerA:Lavaclaw Reaches:1
# Hand
hand:ComputerA:Burst Lightning:1
hand:ComputerA:Searing Blaze:3
hand:ComputerA:Hellspark Elemental:1
hand:ComputerA:Ball Lightning:1
# Library
# from down to top
library:ComputerA:clear:0
library:ComputerA:Burst Lightning:15
# Life
player:ComputerA:life:8
### ComputerB ###
# Battlefield
battlefield:ComputerB:Plains:1
battlefield:ComputerB:Lavaclaw Reaches:1
battlefield:ComputerB:Scalding Tarn:3
battlefield:ComputerB:Dragonskull Summit:1
# Hand
hand:ComputerB:Plains:2
# Library
# from down to top
library:ComputerB:clear:0
library:ComputerB:Plains:10
# Life
player:ComputerB:life:2

View file

@ -0,0 +1,22 @@
#default levels
log4j.rootLogger=info, console, file, watchdog
#console log
log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.layout=org.apache.log4j.PatternLayout
log4j.appender.console.layout.ConversionPattern=%-5p [%d{yyyy-MM-dd HH:mm [ss:SSS]}] %C{1}[%t]: %m%n
log4j.appender.console.Threshold=INFO
#file log
log4j.appender.file=org.apache.log4j.FileAppender
log4j.appender.file.file=MagicWars.log
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%-5p [%d{yyyy-MM-dd HH:mm [ss:SSS]}] %C{1}[%t]: %m%n
log4j.appender.file.Threshold=INFO
#errors
log4j.appender.watchdog=org.apache.log4j.FileAppender
log4j.appender.watchdog.file=watchdog.log
log4j.appender.watchdog.layout=org.apache.log4j.PatternLayout
log4j.appender.watchdog.layout.ConversionPattern=%-5p [%d{yyyy-MM-dd HH:mm [ss:SSS]}] %C{1}[%t]: %m%n
log4j.appender.watchdog.Threshold=ERROR