Allow the application to create a directory of available type adapters
A type adapter in this directory is represented by a character string that begins with an "@". An actual implementation requires an Application Configuration module to supply the mappings
The first thing we do is to check that our Application Configuration module is installed.
check configuration | ||
Environment | Batch | |
Options | appConfigurationModule | fit.AccTestFixtures.ApplicationConfiguration1 |
Now that we've verified the environment, we need to run a test. This fixture is a variant on one of the utility fixtures that references a specialty type adapter rather than the standard type adapter
add with custom int adapter | ||
a | b | c |
1 | 2 | 3 |
2 | 3 | 5 |
3 | 5 | 8 |
5 | 8 | 13 |
Now, let's just check to see what's in the various type adapter directories. The fixture will do this by invoking the type adapter service, not by checking the tables directly. In other words, this is somewhat of an integration test.
check that adapters can be used | |
name | class name |
Integer | IntAdapter |
Boolean | BooleanAdapter |
@customInt | CustomIntAdapter |
@fubar | error |