Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #18972

Process command and autorun variable

Newsgroups comp.lang.java.programmer
Date 2012-09-28 09:49 -0700
Message-ID <bf8cc9ba-829e-4e59-bb23-b20e0a2bb820@googlegroups.com> (permalink)
Subject Process command and autorun variable
From Greg <shireyg@gmail.com>

Show all headers | View raw


Hello,

I am trying to do some junit testing of a process command.  I need to mock out what the regular process command says to the java code.  My junit writes to a file and then makes a windows alias to concatenate the file when the command is executed instead of executing the regular system command.  It sets this value in the autorun variable in the registry.  When I pull up a command prompt, it works.  However, my java process execution is somehow still reading the system command.  How do I get it to use my stuff?  Any ideas or suggestions?  All are welcome.  Thank you.

Greg

Back to comp.lang.java.programmer | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Process command and autorun variable Greg <shireyg@gmail.com> - 2012-09-28 09:49 -0700
  Re: Process command and autorun variable bob smith <bob@coolfone.comze.com> - 2012-10-01 13:41 -0700
  Re: Process command and autorun variable Lew <lewbloch@gmail.com> - 2012-10-01 14:04 -0700
  Re: Process command and autorun variable Greg <shireyg@gmail.com> - 2012-10-03 16:09 -0700
    Re: Process command and autorun variable Greg <shireyg@gmail.com> - 2012-10-03 16:11 -0700

csiph-web