{"action":"closed","issue":{"url":"https://api.github.com/repos/joel-costigliola/assertj-assertions-generator-maven-plugin/issues/31","repository_url":"https://api.github.com/repos/joel-costigliola/assertj-assertions-generator-maven-plugin","labels_url":"https://api.github.com/repos/joel-costigliola/assertj-assertions-generator-maven-plugin/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/joel-costigliola/assertj-assertions-generator-maven-plugin/issues/31/comments","events_url":"https://api.github.com/repos/joel-costigliola/assertj-assertions-generator-maven-plugin/issues/31/events","html_url":"https://github.com/joel-costigliola/assertj-assertions-generator-maven-plugin/issues/31","id":150310491,"number":31,"title":"Is it possible to change the generated package name?","user":{"login":"charleech","id":1825591,"avatar_url":"https://avatars.githubusercontent.com/u/1825591?v=3","gravatar_id":"","url":"https://api.github.com/users/charleech","html_url":"https://github.com/charleech","followers_url":"https://api.github.com/users/charleech/followers","following_url":"https://api.github.com/users/charleech/following{/other_user}","gists_url":"https://api.github.com/users/charleech/gists{/gist_id}","starred_url":"https://api.github.com/users/charleech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charleech/subscriptions","organizations_url":"https://api.github.com/users/charleech/orgs","repos_url":"https://api.github.com/users/charleech/repos","events_url":"https://api.github.com/users/charleech/events{/privacy}","received_events_url":"https://api.github.com/users/charleech/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-22T08:48:31Z","updated_at":"2016-04-23T00:46:28Z","closed_at":"2016-04-23T00:46:28Z","body":"Hi,\r\n\r\nI'm generating the assertion by using the class from another signed jar file. When I execute the test case, it shows me the exception as the following:-\r\n\r\n```\r\nsigner information does not match signer information of other classes in the same package\r\n```\r\n\r\nI'm not sure if it is possible to change the generated package name or not. Could you please help to advise further? Thank you very much for your help in advance. I'm looking forward to hearing from you soon.\r\n\r\nRegards,\r\n\r\nCharlee Ch.\r\n\r\n---\r\n\r\nTL;DR\r\nI've to implement the service whose return type is defined at the APIs project as the following:- \r\n\r\n```java\r\n//The APIs: package com/foo/api\r\n\r\npublic interface MyResponse {\r\n    int getStatus();\r\n    String getMessage();\r\n}\r\n\r\npublic interface Service {\r\n    MyResponse doSomething();\r\n}\r\n```\r\n\r\n```xml\r\n<!-- The implementation pom.xml-->\r\n<plugin>\r\n    <groupId>org.assertj</groupId>\r\n    <artifactId>assertj-assertions-generator-maven-plugin</artifactId>\r\n    <executions>\r\n        <execution>\r\n            <id>generate-assertj</id>\r\n            <goals>\r\n                <goal>generate-assertions</goal>\r\n            </goals>\r\n            <configuration>\r\n                <packages>\r\n                    <!-- Generate from the signed jar file -->\r\n                    <package>com.foo.api</package>\r\n                </packages>\r\n            </configuration>\r\n        </execution>\r\n    </executions>\r\n</plugin>\r\n\r\n<dependencies>\r\n    <!-- The dependency to the signed jar file-->\r\n    <dependency>\r\n        <groupId>com.foo</groupId>\r\n        <artifactId>foo-api</artifactId>\r\n        <scope>compile</scope>\r\n    </dependency>\r\n</dependencies\r\n```\r\n\r\n```java\r\n//The Implementation package com/foo/impl\r\n\r\npublic class MyResponseImpl implements MyResponse {\r\n    @Override\r\n    public int getStatus() { \r\n     }\r\n    public void setStatus(final int status) {\r\n    }\r\n    @Override\r\n    public String getMessage() {\r\n    }\r\n    public void setMessage(final String message) {\r\n    }\r\n}\r\n\r\npublic class ServiceImpl implements Service {\r\n    @Override\r\n    public MyResponse doSomething() {\r\n        //some business logic\r\n        MyResponseImpl res = new MyResponseImpl();\r\n        res.setStaus(0);\r\n        res.setMessage(\"Success\");\r\n        return res;\r\n    }\r\n}\r\n```\r\n\r\n```java\r\n// The test case for the implementation\r\n\r\n@RunWith(Arquillian.class)\r\npublic class MyServiceImplTester {\r\n    @Test\r\n    public void whenEnsureService() {\r\n        MyResponse response = service.doSomething();\r\n\r\n        Assertions.assertThat(response).hasStatus(0);\r\n        Assertions.assertThat(response).hasMessage(\"Success\");\r\n    }\r\n}\r\n```\r\n\r\n"}}