The solution requires .NET SDK 4.0 installed on your machine, in this case version 4.0.30319
The test contains a Main.cs
, which has a method called InitJMSEnv()
which looks something like this:
public static void InitJMSEnv()
{
if(!JmsInitialized)
{
JMSGlobalProperties props = new JMSGlobalProperties
{
connections_per_process = @"1",
msg_timeout = @"1",
user_defined_timeout = @"20",
jndi_provider_url = @"",
jndi_initial_context_factory = @"com.tibco.tibjms.naming.TibjmsInitialContextFactory",
jms_connection_factory = @"",
jms_security_principal = @"",
jms_security_credentials = @"",
set_corba_orb = @"",
auto_generate_selector = @"0",
enable_TIBCO_SSL_JNDI_lookup = @""
};
JMSTransportWrapper.InitJMSProperties(props);
JmsInitialized = true;
}
}
With regular expressions you can fill/adjust the required fields, such as jms_security_principal
and jms_security_credentials
.
Now you can rebuild the project like:
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>msbuild C:\path\to\MyTest.csproj /t:rebuild
The result: a test which is prepared for this environment and ready to be executed.