|
1 | 1 | /* |
2 | 2 | * Copyright 2011 <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a> |
3 | | - * |
| 3 | + * |
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
5 | 5 | * you may not use this file except in compliance with the License. |
6 | 6 | * You may obtain a copy of the License at |
7 | | - * |
| 7 | + * |
8 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
9 | | - * |
| 9 | + * |
10 | 10 | * Unless required by applicable law or agreed to in writing, software |
11 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
12 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
17 | 17 |
|
18 | 18 | import org.apache.http.client.methods.HttpGet; |
19 | 19 | import org.jboss.arquillian.container.test.api.Deployment; |
20 | | -import org.jboss.shrinkwrap.api.asset.StringAsset; |
21 | 20 | import org.jboss.shrinkwrap.api.spec.WebArchive; |
22 | 21 | import org.junit.Assert; |
23 | 22 | import org.junit.Test; |
|
27 | 26 |
|
28 | 27 | /** |
29 | 28 | * @author <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a> |
30 | | - * |
| 29 | + * |
31 | 30 | */ |
32 | 31 | public class RelocatingConfigurationLoaderTest extends RewriteTestBase |
33 | 32 | { |
34 | 33 |
|
35 | 34 | @Deployment(testable = true) |
36 | 35 | public static WebArchive getDeployment() |
37 | 36 | { |
38 | | - WebArchive deployment = RewriteTestBase.getDeployment() |
| 37 | + WebArchive deployment = RewriteTestBase |
| 38 | + .getDeployment() |
39 | 39 | .addPackages(true, Root.class.getPackage()) |
40 | | - .addAsResource(new StringAsset("org.ocpsoft.rewrite.config.RelocatingConfigurationProvider1\n" + |
41 | | - "org.ocpsoft.rewrite.config.RelocatingConfigurationProvider2\n" + |
42 | | - "org.ocpsoft.rewrite.config.RelocatingConfigurationProvider3"), |
43 | | - "/META-INF/services/org.ocpsoft.rewrite.config.ConfigurationProvider"); |
| 40 | + .addAsServiceProvider(ConfigurationProvider.class, |
| 41 | + RelocatingConfigurationProvider1.class, RelocatingConfigurationProvider2.class, |
| 42 | + RelocatingConfigurationProvider3.class); |
44 | 43 | return deployment; |
45 | 44 | } |
46 | 45 |
|
|
0 commit comments