Re: svn commit: r600830 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r600830 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java

Jacques Le Roux
Administrator
Can't merge this one to release4.0 will do it by hand later... (actually a reminder for myself ;o)

Jacques


> Author: lektran
> Date: Tue Dec  4 00:16:36 2007
> New Revision: 600830
>
> URL: http://svn.apache.org/viewvc?rev=600830&view=rev
> Log:
> getNextSeqId requires a valid entity name
>
> Modified:
>     ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java
>
> Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java
> URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java?rev=600830&r1=600829&r2=600830&view=diff

> ==============================================================================
> --- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java (original)
> +++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java Tue Dec  4 00:16:36 2007
> @@ -130,13 +130,13 @@
>
>          // create the root
>          GenericValue root = delegator.create("TestingNode",
> -                        "testingNodeId", delegator.getNextSeqId("testingNodeId"),
> +                        "testingNodeId", delegator.getNextSeqId("TestingNode"),
>                          "primaryParentNodeId", GenericEntity.NULL_FIELD,
>                          "description", "root"
>                  );
>          int level1;
>          for(level1 = 0; level1 < _level1max; level1++) {
> -            String nextSeqId = delegator.getNextSeqId("testingNodeId");
> +            String nextSeqId = delegator.getNextSeqId("TestingNode");
>              GenericValue v =
>                  delegator.create("TestingNode",
>                      "testingNodeId", nextSeqId,
> @@ -168,7 +168,7 @@
>
>          for (GenericValue node: nodeLevel1) {
>              GenericValue testing = delegator.makeValue("Testing",
> -                            "testingId", delegator.getNextSeqId("testing"),
> +                            "testingId", delegator.getNextSeqId("Testing"),
>                              "testingTypeId", "TEST-1"
>                      );
>              testing.put("testingName", "leaf-#" + node.getString("testingNodeId"));
>
>