Skip to content

Commit

Permalink
Fixed compilation problems for Eclipse
Browse files Browse the repository at this point in the history
  • Loading branch information
nvg committed Sep 24, 2012
1 parent 95b0aae commit eee3f44
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public void printPdf() throws IOException, DocumentException{
// start writing the pdf document
PdfImportedPage page1 = writer.getImportedPage(reader, 1);
cb.addTemplate(page1, 1, 0, 0, 1, 0, 0);
addFooter();
// addFooter();
setAppointmentInfo(reqForm);

// add the dynamically positioned text elements
Expand All @@ -168,7 +168,7 @@ public void printPdf() throws IOException, DocumentException{



private float addDynamicPositionedText(String name, String text, float dynamicHeight, EctConsultationFormRequestUtil reqForm) throws DocumentException, IOException{
private float addDynamicPositionedText(String name, String text, float dynamicHeight, EctConsultationFormRequestUtil reqForm) throws DocumentException {
if (text != null && text.length() > 0){
Font boldFont = new Font(bf, FONTSIZE, Font.BOLD);
Font font = new Font(bf, FONTSIZE, Font.NORMAL);
Expand Down Expand Up @@ -229,7 +229,7 @@ private void setAppointmentInfo(EctConsultationFormRequestUtil reqForm) throws D
cb.endText();
}

private void nextPage(EctConsultationFormRequestUtil reqForm) throws DocumentException, IOException{
private void nextPage(EctConsultationFormRequestUtil reqForm) {
PdfImportedPage page2 = writer.getImportedPage(reader, 2);
document.newPage();
cb.addTemplate(page2, 1, 0, 0, 1, 0, 0);
Expand All @@ -241,7 +241,7 @@ private void nextPage(EctConsultationFormRequestUtil reqForm) throws DocumentExc
cb.endText();

PAGENUM++;
addFooter();
// addFooter();

}

Expand All @@ -262,7 +262,7 @@ private void printClinicData(){
cb.endText();
}

private void addFooter() throws DocumentException, IOException{
// private void addFooter() throws DocumentException, IOException{
// cb.beginText();
// cb.setFontAndSize(bf, FONTSIZE);
// cb.showTextAligned(PdfContentByte.ALIGN_CENTER, "-"+PAGENUM+"-", width/2, 30, 0);
Expand All @@ -276,7 +276,7 @@ private void addFooter() throws DocumentException, IOException{
// cb.showTextAligned(PdfContentByte.ALIGN_CENTER, OscarProperties.getInstance().getProperty("FORMS_PROMOTEXT"), width/2, 19, 0);
// cb.endText();
// }
}
// }

private void combinePDFs(String currentFileName) throws IOException{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public void before() throws Exception {
}

@Test
public void testAllAtOnce() throws Exception {
public void testAllAtOnce() {
BillingPrivateTransactions tx = dao.savePrivateBillTransaction(99999, 100.00, 5);
assertTrue(tx.isPersistent());

Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/oscarehr/common/dao/DrugDaoTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void before() throws Exception {
}

@Test
public void testFindDrugsAndPrescriptions() throws Exception {
public void testFindDrugsAndPrescriptions() {
// EntityDataGenerator.generateTestDataForModelClass(entity);

List<Object[]> results = dao.findDrugsAndPrescriptions(99);
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/oscarehr/common/dao/FavoriteDaoTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void testCreate() throws Exception {
}

@Test
public void testAll() throws Exception {
public void testAll() {
dao.findByProviderNo("999");
dao.findByEverything(null, null, null, 0, null, 0, 0, null, null, null, null, 0, false, false, null, null, null, false);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public void before() throws Exception {
}

@Test
public void testAll() throws Exception {
public void testAll() {
dao.findByOscarDocNo(9999);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void before() throws Exception {
}

@Test
public void testAll() throws Exception {
public void testAll() {
dao.findByDemographicIdUpdatedAfterDate(999, new Date());
dao.updatePrescriptionsByScriptNo("100", "comment");
}
Expand Down

0 comments on commit eee3f44

Please sign in to comment.