Is it possible to use an ArgumentCaptor to mock the result of the dao to provide a given value for the doc value for a given documentId? I'd prefer NOT to change the dao call at this time (if possible).Įdit: I was requested to flesh out the above example. This bit of code is very close to untestable, as I don't know how to mock out the result. I have the following bit of code that some long-departed developer wrote: Document doc = new Document() Library/Java/JavaVirtualMachines/zulu-16.jdk/Contents/Home/lib/server/libjvm.dylib: mach-o, but wrong architecture onLoad failed in loadNamespace() for 'rJava', details:Įrror: unable to load shared object '/Library/Java/JavaVirtualMachines/zulu-16.jdk/Contents/Home/lib/server/libjvm.dylib':ĭlopen(/Library/Java/JavaVirtualMachines/zulu-16.jdk/Contents/Home/lib/server/libjvm.dylib, 10): no suitable image found. This is my error Error: package or namespace load failed for ‘rJava’: The following instructions have been tested on multiple Windows and Mac OS. Install Java, using the version Zulu: 16.30.19ĭyn.load('/Library/Java/JavaVirtualMachines/zulu-16.jdk/Contents/Home/lib/server/libjvm.dylib') in R Please note that the RSCAT package depends on Java and the R library rJava.
Here are the steps I have followed so far I have a terrible time installing the package in R while I am using a Mac with M1 architecture. If you might (for some reason) work on both versions of R, you can install both version of Java (Installing the Java Runtime Environment is probably good enough for your needs).