/*
* Copyright 2014 The Skfiy Open Association.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.skfiy.typhon.rnsd.dao;
import java.sql.SQLException;
import org.testng.annotations.Test;
import org.skfiy.typhon.rnsd.domain.OS;
import org.skfiy.typhon.rnsd.domain.Region;
import org.skfiy.typhon.rnsd.domain.Region.State;
/**
*
* @author Kevin Zou <kevinz@skfiy.org>
*/
public class RegionDaoNGTest {
//
//
// public RegionDaoNGTest() {
// }
//
// RegionDao regionDao=new RegionDao();
//
// @Test
// public void testSaveRegion() {
// Region region=new Region();
// region.setName("sdf子");
// region.setIp("afds");
// region.setPort(7869);
// region.setJmxPort(8080);
// region.setOs(OS.ANDROID);
// region.setState(State.BUSY);
// region.setCreationTime(System.currentTimeMillis());
// region.setOpeningTime(System.currentTimeMillis()-100);
// regionDao.saveRegion(region);
// }
//
// @Test
// public void testDeleteRegion() throws SQLException{
// regionDao.deleteRegion(1);
//
// }
//
// @Test
// public void testUpdateRegion() {
// Region region = new Region();
// region.setRid(4);
// region.setName("sdf子");
// region.setIp("afds");
// region.setPort(7869);
// region.setJmxPort(8080);
// region.setOs(OS.IOS);
// region.setState(State.BUSY);
// region.setCreationTime(System.currentTimeMillis());
// region.setOpeningTime(System.currentTimeMillis() - 100);
// regionDao.updateRegion(region);;
// }
//
// @Test
// public void testFindAllRegion() {
// System.out.println("-----------------FindAll----------------------" + regionDao.findAllRegion().size());
// }
//
// @Test
// public void testFindByOs() {
// System.out.println("-----------FindByOs--------------------" + regionDao.findByOs(OS.ANDROID).size());
// }
//
// @Test
// public void testFindRegion() {
// if(regionDao.findRegion(3)!=null)
// {
// System.out.println("----------------FindbyId---------------------Find");
// }
// }
}