Skip to content

Instantly share code, notes, and snippets.

View puevigreven's full-sized avatar
🎯
Focusing

Pralay Ramteke puevigreven

🎯
Focusing
  • Wunderman Thompson Commerce
  • Delhi
View GitHub Profile
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.hisp.dhis.dxf2.importsummary.ImportSummaryTest
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><d:importSummary xmlns:d="http://dhis2.org/schema/dxf/2.0"><d:status>SUCCESS</d:status><d:description>Testing</d:description><d:dataValueCount imported="2" updated="1" ignored="4"/></d:importSummary>Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.879 sec
Running org.openmrs.module.dhisreport.api.adx.AdxTypeTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.096 sec
Running org.openmrs.module.dhisreport.api.dhis.HttpDhis2ServerTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 20.613 sec
Running org.openmrs.module.dhisreport.api.DHIS2ReportingServiceDAOTest
@puevigreven
puevigreven / DHIS2ReportingServiceImpl.java
Created July 30, 2016 06:36
NEW DHIS2ReportingServiceImpl.java
/**
* Copyright 2012 Society for Health Information Systems Programmes, India (HISP India)
*
* This file is part of DHIS2 Reporting module.
*
* DHIS2 Reporting module is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
@puevigreven
puevigreven / error
Created July 30, 2016 06:25
line number 66 is impl.evaluateReportDefinition(rd, period, location);
java.lang.NullPointerException
at org.openmrs.module.dhisreport.api.impl.DHIS2ReportingServiceImplTest.evaluateReportDefinition_shouldEvaluateReportDefinition(DHIS2ReportingServiceImplTest.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
package org.openmrs.module.dhisreport.api.impl;
import java.text.SimpleDateFormat;
import java.util.List;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.Unmarshaller;
import static org.junit.Assert.*;
@puevigreven
puevigreven / gist:4474d58683176ee9b9652adbbc69f54f
Created July 30, 2016 06:05
ERROR WHILE TESTIG THE evaluateReportDefinition(ReportDefinition,Period,Location)
java.lang.NullPointerException
at org.openmrs.module.dhisreport.api.impl.DHIS2ReportingServiceImpl.evaluateReportDefinition(DHIS2ReportingServiceImpl.java:264)
at org.openmrs.module.dhisreport.api.impl.DHIS2ReportingServiceImplTest.evaluateReportDefinition_shouldEvaluateReportDefinition(DHIS2ReportingServiceImplTest.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)