Skip to content

Commit

Permalink
update code gen test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Grahame Grieve committed Nov 4, 2024
1 parent 64a6cc7 commit d18694d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion r5/profiles/TestProfile.java
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,16 @@ public void load(PEInstance src) {
*/
public Observation build(IWorkerContext context) {
workerContext = context;
return build();
}

/**
* Build a instance of the underlying object based on this wrapping object
*
*/
public Observation build() {
Observation theThing = new Observation();
PEBuilder builder = new PEBuilder(context, PEElementPropertiesPolicy.EXTENSION, true);
PEBuilder builder = new PEBuilder(workerContext, PEElementPropertiesPolicy.EXTENSION, true);
PEInstance tgt = builder.buildPEInstance(CANONICAL_URL, theThing);
save(tgt, false);
return theThing;
Expand Down

0 comments on commit d18694d

Please sign in to comment.