Classes in this File | Line Coverage | Branch Coverage | Complexity | |||||||
MockComponentRenderWorker |
|
| 1.0;1 |
1 | // Copyright Jul 10, 2006 The Apache Software Foundation |
|
2 | // |
|
3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
|
4 | // you may not use this file except in compliance with the License. |
|
5 | // You may obtain a copy of the License at |
|
6 | // |
|
7 | // http://www.apache.org/licenses/LICENSE-2.0 |
|
8 | // |
|
9 | // Unless required by applicable law or agreed to in writing, software |
|
10 | // distributed under the License is distributed on an "AS IS" BASIS, |
|
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
12 | // See the License for the specific language governing permissions and |
|
13 | // limitations under the License. |
|
14 | package org.apache.tapestry.test; |
|
15 | ||
16 | import org.apache.tapestry.AbstractComponent; |
|
17 | import org.apache.tapestry.IComponent; |
|
18 | import org.apache.tapestry.IRequestCycle; |
|
19 | import org.apache.tapestry.html.Body; |
|
20 | import org.apache.tapestry.services.ComponentRenderWorker; |
|
21 | ||
22 | ||
23 | /** |
|
24 | * Placeholder class used to allow proper creation of {@link AbstractComponent} classes |
|
25 | * that normally rely on it being injected at runtime. Used primarily by {@link Creator}. |
|
26 | * |
|
27 | * @author jkuhnert |
|
28 | */ |
|
29 | public class MockComponentRenderWorker implements ComponentRenderWorker |
|
30 | { |
|
31 | ||
32 | /** Does nothing. */ |
|
33 | public MockComponentRenderWorker() |
|
34 | 84 | { |
35 | 84 | } |
36 | ||
37 | /** |
|
38 | * {@inheritDoc} |
|
39 | */ |
|
40 | public void renderBody(IRequestCycle cycle, Body component) |
|
41 | { |
|
42 | 0 | } |
43 | ||
44 | /** |
|
45 | * {@inheritDoc} |
|
46 | */ |
|
47 | public void renderComponent(IRequestCycle cycle, IComponent component) |
|
48 | { |
|
49 | 99 | } |
50 | ||
51 | } |