Skip to content
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

feat(CoreFactory): add create(Class) so as to create elements by reflection #949

Merged
merged 1 commit into from
Nov 10, 2016

Conversation

monperrus
Copy link
Collaborator

No description provided.

@@ -39,7 +39,9 @@
public static Collection<Object[]> data() throws Exception {
List<Object[]> values = new ArrayList<>();
for (Method method : CoreFactory.class.getDeclaredMethods()) {
if (method.getName().startsWith("create") && method.getReturnType().getSimpleName().startsWith("Ct")) {
if (method.getName().startsWith("create")
&& method.getParameterCount() == 0
Copy link
Collaborator

@tdurieux tdurieux Nov 10, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why to you change this test?

@monperrus
Copy link
Collaborator Author

Indeed it is, it is required otherwise the test also considers the new
create method.

@tdurieux
Copy link
Collaborator

The PR does not contains test related to the added code.

@monperrus
Copy link
Collaborator Author

@tdurieux
Copy link
Collaborator

Your test is not a metamodelPackageRule

@monperrus monperrus force-pushed the feat-Factory.create branch 3 times, most recently from f692f8b to 88fb88e Compare November 10, 2016 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants