Skip to content

Commit e6d4588

Browse files
committed
Added sar test
1 parent a3efc1d commit e6d4588

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
package org.codehaus.plexus.archiver.sar;
2+
3+
import org.codehaus.plexus.archiver.Archiver;
4+
import org.codehaus.plexus.archiver.BasePlexusArchiverTest;
5+
import org.codehaus.plexus.archiver.UnArchiver;
6+
import org.codehaus.plexus.archiver.manager.ArchiverManager;
7+
import org.codehaus.plexus.archiver.manager.ArchiverManagerTest;
8+
import org.codehaus.plexus.archiver.manager.DefaultArchiverManager;
9+
import org.codehaus.plexus.components.io.resources.PlexusIoResourceCollection;
10+
import org.codehaus.plexus.util.FileUtils;
11+
12+
import java.io.File;
13+
14+
/*
15+
* Copyright 2007 The Codehaus Foundation.
16+
*
17+
* Licensed under the Apache License, Version 2.0 (the "License");
18+
* you may not use this file except in compliance with the License.
19+
* You may obtain a copy of the License at
20+
*
21+
* http://www.apache.org/licenses/LICENSE-2.0
22+
*
23+
* Unless required by applicable law or agreed to in writing, software
24+
* distributed under the License is distributed on an "AS IS" BASIS,
25+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
26+
* See the License for the specific language governing permissions and
27+
* limitations under the License.
28+
*/
29+
30+
public class SarArchiverTest
31+
extends BasePlexusArchiverTest
32+
{
33+
34+
35+
public void testLookup()
36+
throws Exception
37+
{
38+
ArchiverManager dam = (ArchiverManager) lookup( ArchiverManager.ROLE );
39+
PlexusIoResourceCollection sar = dam.getResourceCollection( "sar" );
40+
assertNotNull(sar);
41+
PlexusIoResourceCollection archiver = (PlexusIoResourceCollection) lookup( PlexusIoResourceCollection.ROLE, "sar" );
42+
assertNotNull( archiver);
43+
}
44+
45+
46+
}

0 commit comments

Comments
 (0)