English 中文(简体)
MbUnit SetUp & Teardown thread safety?
原标题:MbUnit SetUp & Teardown thread safety?

第一次站岗,时间很长。 图示着我开始积极参与的时间。 因此,我在这里花了所有周末来寻找答案。

Im利用学位OfParallelism称“MbUnit”提供的一种接受试验。

我的集思广益和提温办法分别开始一个新会议,并销毁了一次len会议,其假设是,这一方法的操作与即将进行的 s角试验所处的环境隔绝。

然而,我看到的是,Teardown方法没有得到保证,无法在正确的环境下运行,导致另一个正在运行的测试状态将发生变化。 这表现在随机试验的冶炼厂停产。 如果我只是用法典(第1条——第1条——第1条——第1条——来预先确定和充实我的试验机构,那么所有工作都是正确的。

是否有任何办法确保设置和提早办法不会在不正确的情况下发生?

提前感谢。

问题回答

暂无回答




相关问题
Need help with web application settings [closed]

Pls give me the solutions for this two problem, which i was asked recently in interview. Prob1: Suppose I have application with 10 admin, so they can change the data anytime their having own userid ...

AutoResetEvent, ManualResetEvent vs Monitor

Lets say I have to orchestrate a synchronization algorithm in .Net 3.5 SP1 and any of the synchronization primitives listed in the title fit perfectly for the task. From a performance perspective, is ...

PHP and Concurrency

I ve been doing some web development work in PHP recently which has led me to study up on the language in general. So far I have not needed to use it to interact with a database, but I know it ...

UI And TcpClient Issue in vb.net

I m having some problems with a small ircbot i m writing. Basically I connect to the server using a tcpclient in a seperate class, which also runs on its own thread. I want to display the server text ...

Prevent Concurrent Editing of a List Item

In Sharepoint MOSS multiple users can edit the same item in a sharepoint list at the same time…the first person to save their edit “wins”. Is there a way to prevent this, to lock the list item while ...

How to properly catch RuntimeExceptions from Executors?

Say that I have the following code: ExecutorService executor = Executors.newSingleThreadExecutor(); executor.execute(myRunnable); Now, if myRunnable throws a RuntimeExcpetion, how can I catch it? ...

Concurrent modification whilst traversing a ruby Hash

Suppose you had this: def wipeProduct(hash, nameToDelete) hash.each do |i| key = i[0] productName = i[1].first hash.delete(key) if productName==nameToDelete end end I m not sure it ...

热门标签