[Nodal-cvs] j-test/src/test/storage/memory TestPaths.java,1.3,1.4 TestmemStringContent.java,1.3,1.4
Status: Pre-Alpha
Brought to you by:
leei
From: Lee I. <le...@us...> - 2005-01-08 01:22:39
|
Update of /cvsroot/nodal/j-test/src/test/storage/memory In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7644/src/test/storage/memory Modified Files: TestPaths.java TestmemStringContent.java TestmemMapContent.java TestmemIntSequenceContent.java TestmemGenericSequenceContent.java TestmemOperator.java TestBareSequence.java Log Message: Adjust usage for: o Hide Path.Failure from users of org.nodal.Nodal Index: TestmemGenericSequenceContent.java =================================================================== RCS file: /cvsroot/nodal/j-test/src/test/storage/memory/TestmemGenericSequenceContent.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TestmemGenericSequenceContent.java 8 Jan 2005 00:54:49 -0000 1.3 --- TestmemGenericSequenceContent.java 8 Jan 2005 01:22:12 -0000 1.4 *************** *** 57,62 **** intSeqType = typeDoc.createSequenceType(Types.SHORT); - } catch (Path.Failure e) { - fail(); } catch (Type.CreationFailure e1) { e1.printStackTrace(); --- 57,60 ---- Index: TestPaths.java =================================================================== RCS file: /cvsroot/nodal/j-test/src/test/storage/memory/TestPaths.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TestPaths.java 8 Jan 2005 00:54:49 -0000 1.3 --- TestPaths.java 8 Jan 2005 01:22:11 -0000 1.4 *************** *** 17,21 **** import org.nodal.Types; import org.nodal.model.Node; - import org.nodal.nav.Path; import org.nodal.type.SequenceType; import org.nodal.type.Schema; --- 17,20 ---- *************** *** 53,58 **** intSeqType = typeDoc.createSequenceType(Types.SHORT); - } catch (Path.Failure e) { - fail(); } catch (Type.CreationFailure e1) { e1.printStackTrace(); --- 52,55 ---- Index: TestmemStringContent.java =================================================================== RCS file: /cvsroot/nodal/j-test/src/test/storage/memory/TestmemStringContent.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TestmemStringContent.java 8 Jan 2005 00:54:49 -0000 1.3 --- TestmemStringContent.java 8 Jan 2005 01:22:11 -0000 1.4 *************** *** 14,18 **** import org.nodal.model.SequenceNode; import org.nodal.model.Setter; - import org.nodal.nav.Path; import org.nodal.type.SequenceType; import org.nodal.type.Schema; --- 14,17 ---- *************** *** 56,61 **** charSeqType = typeDoc.createSequenceType(Types.CHARACTER); - } catch (Path.Failure e) { - fail(); } catch (Type.CreationFailure e1) { e1.printStackTrace(); --- 55,58 ---- Index: TestmemIntSequenceContent.java =================================================================== RCS file: /cvsroot/nodal/j-test/src/test/storage/memory/TestmemIntSequenceContent.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TestmemIntSequenceContent.java 8 Jan 2005 00:54:49 -0000 1.3 --- TestmemIntSequenceContent.java 8 Jan 2005 01:22:12 -0000 1.4 *************** *** 58,63 **** e1.printStackTrace(); fail("Unable to create sequence of integers: " + e1); - } catch (Path.Failure e) { - fail(); } catch (IOException e) { fail(); --- 58,61 ---- Index: TestBareSequence.java =================================================================== RCS file: /cvsroot/nodal/j-test/src/test/storage/memory/TestBareSequence.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TestBareSequence.java 8 Jan 2005 00:54:49 -0000 1.3 --- TestBareSequence.java 8 Jan 2005 01:22:12 -0000 1.4 *************** *** 22,26 **** import org.nodal.model.Setter; import org.nodal.model.ShortSeq; - import org.nodal.nav.Path; import org.nodal.type.SequenceType; import org.nodal.type.Schema; --- 22,25 ---- *************** *** 66,71 **** shortSeqType = typeDoc.createSequenceType(Types.SHORT); - } catch (Path.Failure e) { - fail(); } catch (Type.CreationFailure e1) { e1.printStackTrace(); --- 65,68 ---- Index: TestmemMapContent.java =================================================================== RCS file: /cvsroot/nodal/j-test/src/test/storage/memory/TestmemMapContent.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TestmemMapContent.java 8 Jan 2005 00:54:49 -0000 1.3 --- TestmemMapContent.java 8 Jan 2005 01:22:11 -0000 1.4 *************** *** 16,21 **** import org.nodal.Types; import org.nodal.model.MapNode; - //import org.nodal.model.Node; - import org.nodal.nav.Path; import org.nodal.type.MapType; import org.nodal.type.Schema; --- 16,19 ---- *************** *** 78,83 **** e.printStackTrace(); fail("Type creation failure in setUp: " + e); - } catch (Path.Failure e) { - fail(); } catch (IOException e) { fail(); --- 76,79 ---- Index: TestmemOperator.java =================================================================== RCS file: /cvsroot/nodal/j-test/src/test/storage/memory/TestmemOperator.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TestmemOperator.java 8 Jan 2005 00:54:49 -0000 1.3 --- TestmemOperator.java 8 Jan 2005 01:22:12 -0000 1.4 *************** *** 26,30 **** import org.nodal.model.OpSetField; import org.nodal.model.OpSetValue; - import org.nodal.nav.Path; import org.nodal.type.NodeType; import org.nodal.util.Name; --- 26,29 ---- *************** *** 55,60 **** try { repo = (TransientRepository) Nodal.openRepository ("memory://transient"); - } catch (Path.Failure e) { - fail (); } catch (IOException e) { fail(); --- 54,57 ---- |