Re: [Elexis-develop] Plug-In PhM Prescriber
An Eclipse RCP program for all aspects of a (Swiss) medical practice
Brought to you by:
niklausgiger,
rgw_ch
From: Niklaus G. <nik...@me...> - 2014-09-09 19:51:02
|
Lieber Philipp Jetzt sollte alles okay. Musste zuerst noch im elexis-3-core die org.apache.servicemix.bundles zum ch.elexis.target hinzufügen, dann die build.properties für ch.pharmed.phmprescriber korrigieren, damit das Jar richtig erstellt wurde. Danache habe ich noch eine teardown-Methode hinzufügen müssen, damit der tycho-surefire-tests (der von maven aufgerufen) wird, alle Fenster so schliesst, dass nie eine Benutzerintervention notwendig ist. Das Problem hatte ich bei anderen Test-PlugIns schon gesehen und diese deaktviert, da ich damals keine Zeit hatte, diese zu lösen. Danach musste ich noch ein if einbauen, damit der Unit-Test auch unter der Eclipse-IDE läuft Snippet ist: > PlatformUI.getWorkbench().saveAllEditors(false); // do not confirm saving > PlatformUI.getWorkbench().saveAll(PlatformUI.getWorkbench().getActiveWorkbenchWindow(), PlatformUI.getWorkbench().getActiveWorkbenchWindow(), null, false); > if (PlatformUI.getWorkbench() != null) // null if run from Eclipse- IDE> > { > // needed if run as surefire test from using mvn install > PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().closeAllPerspectives(false, true); > } Liebe Grüsse Niklaus Am Dienstag, 9. September 2014, 08.53:13 schrieb Philipp Wiget: > Hi Niklaus > > Vielen Dank! Werden dann alles ziehen, wenn du (aus deiner Sicht) durch > bist! > > Gruess > > -----Ursprüngliche Nachricht----- > Von: Niklaus Giger [mailto:nik...@me...] > Gesendet: Montag, 8. September 2014 20:59 > An: ele...@li... > Cc: Philipp Wiget > Betreff: Re: [Elexis-develop] Plug-In PhM Prescriber > > Hi Philipp > > I forked your repository and pushed some changes. As described in my pull > request > https://github.com/phwiget/elexis-phmprescriber-plugin/pull/1 > > I fixed the following stuff > * Don't add *.class files to the source code > * Ignore files under target via .gitignore > * Don't include a source jar > * Fixed pom.xml */pom.xml to run tests > * Changed *.launched configuration and added initial JUnit assert_equals > Still the following errors present: > * Launch configuration worked for me to run the Juni-tests > * mvn clean install builds but does not run correctly the tests > > Sorry. I don't have time to fix all issues today. Will try to fix the rest > tomorrow. > > Best regards > > Niklaus > > Am Montag, 8. September 2014, 19.54:10 schrieb Philipp Wiget: > > Hi all > > > > > > > > PhM Prescriber is an API intended to facilitate the transmission of > > electronic prescription from physicians to receiving pharmacies. We > > finally finished our Plug-In for Elexis-OS this webservice. The source > > code can be found on: > > > > https://github.com/phwiget/elexis-phmprescriber-plugin > > > > > > > > As this is our first RCP-project, we are happy for any feedback we > > could get. In particular we are facing some problems enabling unit > > testing with JUnit. > > > > > > > > We followed two different approaches, where we used either (1) the > > launch file from ch.elexis.core.ui.importer.div.tests or (2) the > > launch file from org.iatrix.bestellung.rose_test. > > > > > > > > Error in case (1): junit.framework.AssertionFailedError > > > > § at junit.framework.Assert.fail(Assert.java:48) > > > > § . > > > > > > > > Error in case (2): bundle ch.pharmed.phmprescriber cannot be found > > (we probably miss some minor thing here ) > > > > > > > > Did anybody have the same problem? Are there some workarounds? > > > > > > > > > > > > Thanks for your help in advance. > > > > > > > > Best regards > > > > > > > > Philipp Wiget > > > > > > > > > > > > ----------------------------------------------- > > Pharmed Solutions GmbH > > > > Greifenseestrasse 15 > > > > 8050 Zürich > > > > > > > > mobile: +41 79 404 88 64 > > > > <https://www.pharmedsolutions.ch/> https://www.pharmedsolutions.ch > > -- > Niklaus Giger > Wieshoschet 6 > CH-8753 Mollis > +41 (0)55 612 20 54 P > +41 (0)77 473 02 59 Mobil -- Niklaus Giger Wieshoschet 6 CH-8753 Mollis +41 (0)55 612 20 54 P +41 (0)77 473 02 59 Mobil |