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

Test Case for org.openmrs.module.dhisreport.api.adx Package #44

Merged
merged 1 commit into from
Aug 3, 2016

Conversation

puevigreven
Copy link
Contributor

No description provided.

try {
date3 = DatatypeFactory.newInstance().newXMLGregorianCalendar(new GregorianCalendar(2016, 06, 14));
} catch (DatatypeConfigurationException e) {
e.printStackTrace();
Copy link
Member

@dkayiwa dkayiwa Aug 3, 2016

Choose a reason for hiding this comment

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

Don't you just wanna let this bubble through instead of catching it?

@puevigreven
Copy link
Contributor Author

@dkayiwa I have tried to fix the issues. Is there ok?

public class AdxTypeTest {

@Test
public void ShouldHaveProperValuesInAllAttributesOfAdxType() throws JAXBException, FileNotFoundException,
Copy link
Member

Choose a reason for hiding this comment

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

Can you change the method name to match these conventions? http://www.oracle.com/technetwork/java/codeconventions-135099.html

@puevigreven puevigreven force-pushed the DRM-25-ADX branch 2 times, most recently from b8c0dfa to f8d242b Compare August 3, 2016 08:41
changing names

small change

small changes in name
@puevigreven
Copy link
Contributor Author

@dkayiwa thank you for reviewing it. I have tried to fix the issues.

@dkayiwa
Copy link
Member

dkayiwa commented Aug 3, 2016

@puevigreven thanks for the fast response. I just noticed that a fresh checkout of the module fails with a compiler error. Do you think you can look into it?
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project dhisreport-api: Compilation failure
[ERROR] /Projects/openmrs/dhisreport/api/src/main/java/org/openmrs/module/dhisreport/api/impl/DHIS2ReportingServiceImpl.java:[324,30] cannot access org.openmrs.calculation.patient.PatientCalculationContext
[ERROR] class file for org.openmrs.calculation.patient.PatientCalculationContext not found

@puevigreven
Copy link
Contributor Author

@dkayiwa I compiled branches master,DRM-25-ImportSummaries,DRM-25-IMPL, DRM-25-ADX and all passed successfully.
can you Please check once again if still the error persist.
I will be happy to look into it.

@dkayiwa
Copy link
Member

dkayiwa commented Aug 3, 2016

@puevigreven oh i see! I was using Java 1.8
Reverting to java 1.7 makes all well. :)

@dkayiwa
Copy link
Member

dkayiwa commented Aug 3, 2016

@puevigreven just reverted this because it failed locally for me with: Failed tests: shouldHaveProperValuesInAllAttributesOfAdxType(org.openmrs.module.dhisreport.api.adx.AdxTypeTest): expected:<...07-14T00:00:00.000+0[5:3]0> but was:<...07-14T00:00:00.000+0[3:0]0>

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