-
Notifications
You must be signed in to change notification settings - Fork 22
JDO-848 remove xml parser #104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
tzaeschke
wants to merge
39
commits into
main
Choose a base branch
from
JDO-848-remove-XML-parser
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
03aa658
OrderTest w/o XML
tzaeschke e5fb41f
MyLibTest w/o XML - WIP
tzaeschke 3e6b7d6
Fixed concurrency issue when running ResultClassRequirementsMap query…
tzaeschke 75d4561
Fix query.conf failure
tzaeschke eb2e1ae
Fixed concurrency issue when running query.Variable test
tzaeschke 3442b5b
QUeryTest with new factory
tzaeschke 3d55f5c
Fix for result.Variable see JDO-851
tzaeschke 5b6f8ac
Remove XML
tzaeschke bdfdb41
Remove XML
tzaeschke ffff786
Remove XML
tzaeschke f7530a3
Clean up
tzaeschke eca9295
Remove XML
tzaeschke 296674b
Remove XML
tzaeschke fef00a0
Remove XML
tzaeschke 35c07cd
Remove XML
tzaeschke ec74b30
QUERY_TEST
tzaeschke 956a763
Tests pass except concurrent tests
tzaeschke d860450
Tests pass except concurrent tests
tzaeschke 2844c89
SampleQuery works!
tzaeschke 4a21242
NavigationTest works
tzaeschke 9ec33ae
SubqueryTest works
tzaeschke 6c9d3d6
EmbeddedTest works
tzaeschke 12a0811
Update EmbeddedTestData.java
tzaeschke d2a8bdc
AllRelationshipsTest
tzaeschke 461c82e
All tests migrated
tzaeschke 0a135cf
Structure cleanup
tzaeschke f46c13e
Test class in conf files
tzaeschke 35de9e2
Use jdo.tck.testdata
tzaeschke 1d529e4
Prepare removal of XML files
tzaeschke d8e9d27
Prepare removal of XML files
tzaeschke 81c1215
Prepare removal of XML files
tzaeschke 33877ee
Prepare removal of XML files
tzaeschke a678427
Prepare removal of XML files
tzaeschke 4114ad6
Prepare removal of XML files
tzaeschke 1166fed
Prepare removal of XML files
tzaeschke 67b2925
Prepare removal of XML files
tzaeschke f2aa6f2
Remove XML files
tzaeschke 54c9406
Update Variable.java
tzaeschke 19d6c66
Remove XML files
tzaeschke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
tck/src/main/java/org/apache/jdo/tck/pc/company/data/CompanyDataSource.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| /* | ||
| * Licensed to the Apache Software Foundation (ASF) under one or more | ||
| * contributor license agreements. See the NOTICE file distributed with | ||
| * this work for additional information regarding copyright ownership. | ||
| * The ASF licenses this file to You 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 | ||
| * | ||
| * https://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 org.apache.jdo.tck.pc.company.data; | ||
|
|
||
| import org.apache.jdo.tck.pc.company.CompanyFactory; | ||
| import org.apache.jdo.tck.util.DataSource; | ||
|
|
||
| public interface CompanyDataSource extends DataSource<CompanyFactory> {} |
121 changes: 121 additions & 0 deletions
121
tck/src/main/java/org/apache/jdo/tck/pc/company/data/EmbeddedTestData.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,121 @@ | ||
| /* | ||
| * Licensed to the Apache Software Foundation (ASF) under one or more | ||
| * contributor license agreements. See the NOTICE file distributed with | ||
| * this work for additional information regarding copyright ownership. | ||
| * The ASF licenses this file to You 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 | ||
| * | ||
| * https://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 org.apache.jdo.tck.pc.company.data; | ||
|
|
||
| import static org.apache.jdo.tck.util.DataSourceUtil.*; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Better to use specific classes to import. |
||
|
|
||
| import java.math.BigDecimal; | ||
| import org.apache.jdo.tck.pc.company.*; | ||
| import org.apache.jdo.tck.util.DefaultListableInstanceFactory; | ||
|
|
||
| public class EmbeddedTestData implements CompanyDataSource { | ||
|
|
||
| @Override | ||
| public void init(CompanyFactory factory, DefaultListableInstanceFactory registry) { | ||
| IAddress addr1 = | ||
| factory.newAddress(1, "Unter den Linden 1", "Berlin", " ", "12345", "Germany"); | ||
| IAddress addr2 = factory.newAddress(2, "Broadway 1", "New York", "NY", "10000", "USA"); | ||
| IAddress addr3 = factory.newAddress(3, "Market St.", "San Francisco", "CA", "94102", "USA"); | ||
|
|
||
| // Insurance constructors | ||
| IMedicalInsurance medicalIns1 = factory.newMedicalInsurance(1, "Carrier1", "PPO"); | ||
| IMedicalInsurance medicalIns2 = factory.newMedicalInsurance(2, "Carrier2", "HMO"); | ||
| IMedicalInsurance medicalIns3 = factory.newMedicalInsurance(3, "Carrier3", "HMO"); | ||
| IDentalInsurance dentalIns1 = | ||
| factory.newDentalInsurance(4, "Carrier2", BigDecimal.valueOf(99.999)); | ||
|
|
||
| // Project constructors | ||
| IProject proj1 = factory.newProject(1, "orange", BigDecimal.valueOf(2500000.99)); | ||
| IProject proj2 = factory.newProject(2, "blue", BigDecimal.valueOf(50000.00)); | ||
| IProject proj3 = factory.newProject(3, "green", BigDecimal.valueOf(2000.99)); | ||
|
|
||
| // Company constructor | ||
| ICompany company1 = factory.newCompany(1L, "Sun Microsystems, Inc.", date(1952, 4, 11), addr1); | ||
|
|
||
| // Meeting room constructors | ||
|
|
||
| // Department Constructors | ||
| IDepartment dept1 = factory.newDepartment(1, "Development", company1); | ||
| IDepartment dept2 = factory.newDepartment(2, "Human Resources", company1); | ||
| company1.setDepartments(toSet(dept1, dept2)); | ||
|
|
||
| // Employee Constructors | ||
| IFullTimeEmployee emp1 = | ||
| factory.newFullTimeEmployee( | ||
| 1, "emp1First", "emp1Last", "emp1Middle", null, addr1, null, 20000); | ||
| emp1.setBirthdate(date(1970, 6, 10)); | ||
| emp1.setHiredate(date(1999, 1, 1)); | ||
| IFullTimeEmployee emp2 = | ||
| factory.newFullTimeEmployee( | ||
| 2, "emp2First", "emp2Last", "emp2Middle", null, addr2, null, 10000); | ||
| emp2.setBirthdate(date(1975, 12, 22)); | ||
| emp2.setHiredate(date(2003, 7, 1)); | ||
| IPartTimeEmployee emp3 = | ||
| factory.newPartTimeEmployee( | ||
| 3, "emp3First", "emp3Last", "emp3Middle", null, addr3, null, 15); | ||
| emp3.setBirthdate(date(1972, 7, 5)); | ||
| emp3.setHiredate(date(2002, 8, 15)); | ||
| IPartTimeEmployee emp4 = | ||
| factory.newPartTimeEmployee( | ||
| 4, "emp4First", "emp4Last", "emp4Middle", null, addr3, null, 13); | ||
| emp4.setBirthdate(date(1973, 7, 6)); | ||
| emp4.setHiredate(date(2001, 4, 15)); | ||
| IFullTimeEmployee emp5 = | ||
| factory.newFullTimeEmployee( | ||
| 5, "emp5First", "emp5Last", "emp5Middle", null, addr3, null, 45000); | ||
| emp5.setBirthdate(date(1962, 7, 5)); | ||
| emp5.setHiredate(date(1998, 8, 15)); | ||
|
|
||
| // Employee properties | ||
| emp1.setWeeklyhours(40); | ||
| emp1.setPhoneNumbers(toMap("home", "1111", "work", "123456-1")); | ||
|
|
||
| emp2.setWeeklyhours(40); | ||
| emp2.setPhoneNumbers(toMap("home", "2222", "work", "123456-2")); | ||
|
|
||
| emp3.setWeeklyhours(19); | ||
| emp3.setPhoneNumbers(toMap("home", "3333", "work", "123456-3")); | ||
|
|
||
| emp4.setPhoneNumbers(toMap("home", "3343", "work", "124456-3")); | ||
|
|
||
| emp5.setPhoneNumbers(toMap("home", "3363", "work", "126456-3")); | ||
|
|
||
| // Department properties | ||
|
|
||
| // Insurance properties | ||
|
|
||
| // Project properties | ||
|
|
||
| // root objects | ||
| registry.register("company1", company1); | ||
| registry.register("dept1", dept1); | ||
| registry.register("dept2", dept2); | ||
| registry.register("emp1", emp1); | ||
| registry.register("emp2", emp2); | ||
| registry.register("emp3", emp3); | ||
| registry.register("emp4", emp4); | ||
| registry.register("emp5", emp5); | ||
| registry.register("medicalIns1", medicalIns1); | ||
| registry.register("medicalIns2", medicalIns2); | ||
| registry.register("medicalIns3", medicalIns3); | ||
| registry.register("dentalIns1", dentalIns1); | ||
| registry.register("proj1", proj1); | ||
| registry.register("proj2", proj2); | ||
| registry.register("proj3", proj3); | ||
| } | ||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Best practice is to avoid import ...* because it makes it difficult to track dependencies.