Commit graph

12 commits

Author SHA1 Message Date
j2blake
245763e9e7 Make DeveloperSettings a singleton, and other improvements.
By making it a singleton, we do need an explicit Setup operation. However, it means that we can refer to the settings in client code that doesn’t have access to a request or to the ServletContext.

Other refactorings to simplify the logic or make it more scalable.
2014-01-04 14:22:29 -05:00
j2blake
70298026ea Reduce warning messages in unit tests.
We get a warning on any attempt to use anything that may be affected by DeveloperSettings, because DeveloperSetting tries to use ConfigurationProperties to find its properties file. We could avoid this by requiring the use of a ConfigurationPropertiesStub, but it seems to make more sense to routinely create a DeveloperSettingsStub on each ServletContextStub.
2013-11-25 12:31:51 -05:00
j2blake
c75c0d0f9f VIVO-235 Reduce "deprecation" messages in the build
It's OK for these stub classes to implement deprecated methods in the interfaces, as long as they declare those methods with @Override and @Deprecated.
2013-08-01 16:06:59 -04:00
Brian Caruso
54f79f2ea7 Normalize line endings VIVO-101 2013-07-18 15:19:53 -04:00
j2blake
24f5562626 NIHVIVO-3628 Tweak the arguments to ServletContextStub.setRealPaths, so the entire prefix is provided and the method doesn't need to insert a file separator (which may be system-dependent). 2012-02-23 21:11:33 +00:00
hjkhjk54
10908a7a65 Update to correct the slash for key for config file (was failing on Windows when it used to the system-specific file separator before which resulted in \config/X instead of \config\X) 2012-02-23 17:57:17 +00:00
j2blake
b53f26a375 NIHVIVO-3628 Create unit tests to cover the parsing and interpreting of custom list view config files. 2012-02-21 17:06:55 +00:00
j2blake
ca46511f40 NIHVIVO-3542 Enhance the Stub classes so I can write unit tests for the IndividualController. Adjust AuthenticateTest to use the enhanced HttpServletRequestStub. 2012-01-24 17:22:34 +00:00
jeb228
38267c6224 remove some of the "deprecated" warnings from the build log. 2011-02-08 18:40:30 +00:00
jeb228
b438f7d36d NIHVIVO-1229 Create the RevisionInfoBean, with setup listener and unit tests. 2010-10-25 21:30:34 +00:00
jeb228
bddc92fb72 NIHVIVO-510 Remove warnings for deprecated methods in ServletContext 2010-06-04 16:13:11 +00:00
jeb228
5b9bf808c8 NIHVIVO-510 Create the FileStorageSetup initializer, instead of the FileStorageFactory 2010-06-03 21:16:03 +00:00