Дата публикации: 2017-10-23 01:25
You are Not Part Of the Control Group by Aperture Science Psychoacoustics Laboratory [8:79] | Download | Play
A key part of in-container integration testing is getting access the container-managed components that you plan to test. Using the Java new operator to instantiate the business class is not suitable in this testing scenario because it leaves out the declaratives services that get applied to the component at runtime. We want the real deal. Arquillian uses test enrichment to give us access to the real deal. The visible result of test enrichment is injection of container resources and beans directly into the test class.
This is the thirty-eighth level of the game, and takes place within Aperture Science Enrichment Sphere #6. This level introduces Repulsion Gel , and way in which it can be used to the player's advantage when combined with momentum. This level features Goo as its main hazard.
Now use portals to go where you put the orange gel. Put a portal on the wall at the end of the orange gel, then put a portal of the other color on the angled wall above that. Go to the end of the red arrows, then run toward the portal. When you come out of the angled wall, you should bounce off of the blue gel.
The first two enrichers use JNDI to lookup the instance to inject. The CDI injections are handled by treating the test class as a bean capable of receiving standard CDI injections.
With Arquillian, you no longer have to worry about setting up the execution environment because that is all handled for you. The test will either be running in a container or a local CDI environment. But you still need some way to hook your test into this environment.
When you use a unit testing framework like JUnit or TestNG, your test case lives in a world on its own. That makes integration testing pretty difficult because it means the environment in which the business logic executes must be self-contained within the scope of the test case (whether at the suite, class or method level). The onus of setting up this environment in the test falls on the developer's shoulders.
Finally, go to the area near the gel tubes where you made a long streak of orange gel on the floor. Use portals to go to that area, then make a portal on the wall facing that ramp that you put orange gel on a moment ago. Put a portal of the other color at the end of the big streak of orange gel that you should now be standing on. Run from the far end toward the portal at the end of the orange gel. You should run over the orange ramp, bounce off of the blue gel on the rotated ceiling, and end up at the elevator. Go in.
This is the forty-third level of the game, and takes place within Aperture Science Enrichment Sphere #5. This level requires the player to combine the effects of both Propulsion Gel and Repulsion Gel in order to proceed. Goo is present as the primary hazard.
Before Arquillian negotiates the execution of the test, it enriches the test class by satisfying injection points specified declaratively using annotations. There are three injection-based enrichers provided by Arquillian out of the box: