1022N/A/*
1023N/A * CDDL HEADER START
1023N/A *
1023N/A * The contents of this file are subject to the terms of the
1023N/A * Common Development and Distribution License (the "License").
1023N/A * You may not use this file except in compliance with the License.
1023N/A *
1023N/A * See LICENSE.txt included in this distribution for the specific
1023N/A * language governing permissions and limitations under the License.
1023N/A *
1023N/A * When distributing Covered Code, include this CDDL HEADER in each
1023N/A * file and include the License file at LICENSE.txt.
1023N/A * If applicable, add the following below this CDDL HEADER, with the
1023N/A * fields enclosed by brackets "[]" replaced with your own identifying
1023N/A * information: Portions Copyright [yyyy] [name of copyright owner]
1023N/A *
1023N/A * CDDL HEADER END
1023N/A */
1023N/A
1023N/A/*
1023N/A * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
1023N/A * Use is subject to license terms.
1022N/A */
1022N/A
1022N/Apackage org.opensolaris.opengrok.history;
1022N/A
1022N/Aimport java.io.File;
1022N/Aimport org.junit.After;
1022N/Aimport org.junit.AfterClass;
1022N/Aimport org.junit.Before;
1022N/Aimport org.junit.BeforeClass;
1022N/Aimport org.junit.Test;
1022N/Aimport static org.junit.Assert.*;
1022N/A
1022N/A/**
1022N/A *
1022N/A * @author Lubos Kosco
1022N/A */
1022N/Apublic class SCCSRepositoryTest {
1022N/A
1022N/A public SCCSRepositoryTest() {
1022N/A }
1022N/A
1022N/A @BeforeClass
1022N/A public static void setUpClass() throws Exception {
1022N/A }
1022N/A
1022N/A @AfterClass
1022N/A public static void tearDownClass() throws Exception {
1022N/A }
1022N/A
1022N/A @Before
1022N/A public void setUp() {
1022N/A }
1022N/A
1022N/A @After
1022N/A public void tearDown() {
1022N/A }
1022N/A
1022N/A /**
1022N/A * Test of isRepositoryFor method, of class SCCSRepository.
1022N/A */
1022N/A @Test
1022N/A public void testIsRepositoryFor() {
1022N/A //test bug 15954
1022N/A File tdir = new File(System.getProperty("java.io.tmpdir")+File.separator+"testogrepo");
1022N/A File test = new File(tdir,"Codemgr_wsdata");
1023N/A test.mkdirs();//TODO fix FileUtilities to not leave over dummy directories in tmp and then use them here ;)
1022N/A SCCSRepository instance = new SCCSRepository();
1022N/A assertTrue(instance.isRepositoryFor(tdir));
1022N/A test.delete();
1022N/A tdir.delete();
1022N/A }
1022N/A
1024N/A}