openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Logemann ...@logemann.org>
Subject TestLocalizer Problems
Date Fri, 25 Aug 2006 21:06:09 GMT
I finally managed to setup IntelliJ IDEA with the openjpa-lib module/ 
project and ran the test inside the IDE.
Now i also have values for you (and this even i dont wanted to put  
time in there, but checking out new projects code is exciting)


Test method: testForClass()
-------------------------------------

junit.framework.ComparisonFailure:
Expected :value1
Actual  :value1_de
	at org.apache.openjpa.lib.util.TestLocalizer.assertEquals 
(TestLocalizer.java:115)
	at org.apache.openjpa.lib.util.TestLocalizer.testForClass 
(TestLocalizer.java:47)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:25)
	at com.intellij.rt.execution.junit2.JUnitStarter.main 
(JUnitStarter.java:32)


Dont know why you expect "value" if inside the DE properties file its  
noted that for key "test.local1"  -> "value1_de" is returned.

Same for test method: testFallbackLocale() !!

Test method: testTopLevel()
-------------------------------------

junit.framework.ComparisonFailure:
Expected :systemvalue1
Actual  :test.systemlocal
	at org.apache.openjpa.lib.util.TestLocalizer.assertEquals 
(TestLocalizer.java:115)
	at org.apache.openjpa.lib.util.TestLocalizer.testTopLevel 
(TestLocalizer.java:74)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:25)
	at com.intellij.rt.execution.junit2.JUnitStarter.main 
(JUnitStarter.java:32)

Dont know why you expect "systemvalue1" for system.get 
("test.systemlocal")



Test method: testTopLevel()
-------------------------------------

junit.framework.ComparisonFailure:
Expected :value2 x sep y
Actual  :value2_de x sep y
	at org.apache.openjpa.lib.util.TestLocalizer.assertEquals 
(TestLocalizer.java:115)
	at org.apache.openjpa.lib.util.TestLocalizer.testMessageFormat 
(TestLocalizer.java:81)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:25)
	at com.intellij.rt.execution.junit2.JUnitStarter.main 
(JUnitStarter.java:32)

Again, "_de" is missing in the expected value. Take a look in the DE  
properties file!



--
regards
Marc Logemann
[blog] http://www.logemann.org
[busn] http://www.logentis.de



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message