You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by jv...@apache.org on 2001/03/17 20:01:47 UTC
cvs commit: jakarta-velocity/test/configuration/compare output.cmp
jvanzyl 01/03/17 11:01:47
Added: test/configuration test.config
test/configuration/compare output.cmp
Log:
- adding test files that are used with the configuration test harness.
Revision Changes Path
1.1 jakarta-velocity/test/configuration/test.config
Index: test.config
===================================================================
# ---------------------------------------------------------
# Make sure that we get these back in the
# order that they are listed here.
# ---------------------------------------------------------
01 = 01
02 = 02
03 = 03
04 = 04
05 = 05
06 = 06
07 = 07
08 = 08
09 = 09
10 = 10
# ---------------------------------------------------------
# Test CSV properties
# ---------------------------------------------------------
resource.loader = file, classpath, datasource
file.resource.loader.class = FileResourceLoader
file.resource.loader.description = File Resource Loader
file.resource.loader.path = /path01
file.resource.loader.path = /path02
file.resource.loader.path = /path03
classpath.resource.loader.class = ClasspathResourceLoader
classpath.resource.loader.description = Classpath Resource Loader
datasource.resource.loader.class = DataSourceResourceLoader
datasource.resource.loader.description = Datasource Resource Loader
# ---------------------------------------------------------
# Test multi same value keys
# ---------------------------------------------------------
logger.type = file
logger.type = console
logger.type = db
# ---------------------------------------------------------
# Testing String retrieval
# ---------------------------------------------------------
config.string.value = string
# ---------------------------------------------------------
# Testing boolean retrieval
# ---------------------------------------------------------
config.boolean.value = true
# ---------------------------------------------------------
# Testing byte retrieval
# ---------------------------------------------------------
config.byte.value = 1
# ---------------------------------------------------------
# Testing short retrieval
# ---------------------------------------------------------
config.short.value = 1
# ---------------------------------------------------------
# Testing integer retrieval
# ---------------------------------------------------------
config.int.value = 30000
# ---------------------------------------------------------
# Testing long retrieval
# ---------------------------------------------------------
config.long.value = 1000000
# ---------------------------------------------------------
# Testing float retrieval
# ---------------------------------------------------------
config.float.value = 3.14
# ---------------------------------------------------------
# Testing double retrieval
# ---------------------------------------------------------
config.double.value = 3.14159265358793
1.1 jakarta-velocity/test/configuration/compare/output.cmp
Index: output.cmp
===================================================================
--------------------------------------------------
Testing order of keys ...
--------------------------------------------------
01
02
03
04
05
06
07
08
09
10
resource.loader
file.resource.loader.class
file.resource.loader.description
file.resource.loader.path
classpath.resource.loader.class
classpath.resource.loader.description
datasource.resource.loader.class
datasource.resource.loader.description
logger.type
config.string.value
config.boolean.value
config.byte.value
config.short.value
config.int.value
config.long.value
config.float.value
config.double.value
--------------------------------------------------
Testing retrieval of CSV values ...
--------------------------------------------------
file
classpath
datasource
--------------------------------------------------
Testing Configuration.subset(prefix).getKeys() ...
--------------------------------------------------
class
description
path
--------------------------------------------------
Testing getVector(prefix) ...
--------------------------------------------------
/path01
/path02
/path03
--------------------------------------------------
Testing getString(key) ...
--------------------------------------------------
string
--------------------------------------------------
Testing getBoolean(key) ...
--------------------------------------------------
true
--------------------------------------------------
Testing getByte(key) ...
--------------------------------------------------
1
--------------------------------------------------
Testing getShort(key) ...
--------------------------------------------------
1
--------------------------------------------------
Testing getInt(key) ...
--------------------------------------------------
30000
--------------------------------------------------
Testing getLong(key) ...
--------------------------------------------------
1000000
--------------------------------------------------
Testing getFloat(key) ...
--------------------------------------------------
3.14
--------------------------------------------------
Testing getDouble(key) ...
--------------------------------------------------
3.14159265358793