[jboss-svn-commits] JBL Code SVN: r5155 - labs/jbossesb/branches/refactor/ESBCore/Tests/src/org/jboss/soa/esb/tests

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Tue Jul 18 14:57:36 EDT 2006


Author: arvinder
Date: 2006-07-18 14:57:34 -0400 (Tue, 18 Jul 2006)
New Revision: 5155

Removed:
   labs/jbossesb/branches/refactor/ESBCore/Tests/src/org/jboss/soa/esb/tests/TestPersonAddrPhone.java
Log:
This has been deleted as it has been split into 2 unit tests under common

Deleted: labs/jbossesb/branches/refactor/ESBCore/Tests/src/org/jboss/soa/esb/tests/TestPersonAddrPhone.java
===================================================================
--- labs/jbossesb/branches/refactor/ESBCore/Tests/src/org/jboss/soa/esb/tests/TestPersonAddrPhone.java	2006-07-18 18:37:30 UTC (rev 5154)
+++ labs/jbossesb/branches/refactor/ESBCore/Tests/src/org/jboss/soa/esb/tests/TestPersonAddrPhone.java	2006-07-18 18:57:34 UTC (rev 5155)
@@ -1,96 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2006, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-package org.jboss.soa.esb.tests;
-
-
-import org.jboss.soa.esb.util.*;
-import org.jboss.soa.esb.common.bizclasses.*;
-
-public class TestPersonAddrPhone
-{
-	public TestPersonAddrPhone() throws Exception
-		{ performTest(); }
-
-	static void performTest() throws Exception
-	{
-		BaseBusinessObject o = getPerson();
-		o.setPackage();
-
-		BobjStdDTO oDto = o.toDTO();
-		System.out.println(oDto.toXml());
-
-		o = BaseBusinessObject.getFromDTO(oDto);
-		System.out.println(o.toDTO().toXml());
-		Thread.sleep(500);
-
-		o.toDTO().Dump("Example dump of "+o.getClass().getSimpleName());
-
-	} //________________________________
-
-	static Person getPerson() throws Exception
-	{	Person oP = new Person((String)null);
-		oP.setField(Person.ATTRIB.pfx,"Mr.");
-		oP.setField(Person.ATTRIB.fmlyN,"Brum");
-		oP.setField(Person.ATTRIB.givN,"Daniel");
-		oP.setField(Person.ATTRIB.sfx,"the 1st.");
-
-		oP.addAddress(getAddress());
-
-		oP.addEmail(OneValue.getStringValue("myaddr at gmail.com","home"));
-		oP.addEmail(OneValue.getStringValue("john.smith at jboss.com","work"));
-
-		oP.addPhone(newPhone("basement","1","416","555-1212",null));
-		oP.addPhone(newPhone("cell",null,"416","666-4444",null));
-
-		return oP;
-	} //________________________________
-
-	static Address getAddress() throws Exception
-	{
-		Address oP = new Address((String)null);
-		oP.setField(Address.ATTRIB.strNum,"50");
-		oP.setField(Address.ATTRIB.strLine1,"Balcarce");
-		oP.setField(Address.ATTRIB.twnCty1,"San Isidro");
-		oP.setField(Address.ATTRIB.postalZip,"1642");
-		oP.setField(Address.ATTRIB.provSt,"Buenos Aires");
-		oP.setField(Address.ATTRIB.cntry,"Argentina");
-
-		oP.addPhone(newPhone("torIP",null,"416","555-1212",null));
-		oP.addPhone(newPhone("home","54","11","4555-1111","7"));
-
-		return oP;
-	} //________________________________
-
-	public static Telephone newPhone(String p_sRole,
-			String p_sCtry, String p_sCity, String p_sNum, String p_sExt)
-	{
-		Telephone oP = new Telephone((String)null);
-		oP.setRole(p_sRole);
-		oP.setField(Telephone.ATTRIB.cntry,p_sCtry);
-		oP.setField(Telephone.ATTRIB.city,p_sCity);
-		oP.setField(Telephone.ATTRIB.num,p_sNum);
-		oP.setField(Telephone.ATTRIB.ext,p_sExt);
-
-		return oP;
-	}
-
-} //____________________________________________________________________________




More information about the jboss-svn-commits mailing list