Commit graph

22 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
4928940849 VIVO-82 Use ModelAccess to store and get WebappDaoFactory references. 2013-05-21 17:46:20 -04:00
j2blake
588fbcf0e7 Add some unit tests to JsonServlet 2012-04-30 19:47:37 +00: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
brianjlowe
4d8206b018 NIHVIVO-3264 avoid deprecation warnings; new URLEncoder convenience class 2011-11-04 20:59:44 +00:00
jeb228
38267c6224 remove some of the "deprecated" warnings from the build log. 2011-02-08 18:40:30 +00:00
bdc34
d000ca1c82 Suppressing warnings about deprecated methods 2011-01-04 00:00:09 +00:00
jeb228
192b722de3 NIHVIVO-1460 implement more stub methods to enable testing. 2010-12-09 17:18:00 +00:00
jeb228
f7b7046318 If the user fails to login, they will be redirected back to the page that contains the Login widget. 2010-11-15 17:03:35 +00:00
jeb228
631870cad2 NIHVIVO-1207 enhance stub classes for unit tests. 2010-11-04 14:50:38 +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
jeb228
d7e274f11b Suppress deprecation message when compiling. Can't avoid implementing the deprecated method, but we don't need to see the warning. 2010-03-21 18:27:36 +00:00
rjy7
076213cf5f NIHVIVO-70 Moved license text to top of all files, for consistency with Eclipse file templates to be created. 2010-01-31 04:38:14 +00:00
jeb228
4f2e303079 Improve output: distinguish between failed assertions (failures) and unexpected exceptions (errors), and print a filtered stack trace for any exception. 2010-01-29 22:13:57 +00:00