What you can be sure of using this new method is that you have run everything possible in your existing Arsenal of tests to ensure the lowest possible risk.
使用此新方法,您可以确信的是,您已经运行了您现有的测试组合中可能的每个测试,来确保最低可能的风险。
In each case, I ran a simple program that measured the run time of a loop calling a method 10,000,000 times, calling both a synchronized and an unsynchronized version, and compared the results.
在每一个实例下,我运行一个简单的程序,测定循环调用一个方法10,000,000次所需的运行时间,我调用了同步和非同步两个版本,并比较了结果。
In this article, you've examined a simple, but powerful, method to run commands on a remote machine.
在本文中,您研究了一种用于在远程计算机中运行命令的简单但功能强大的方法。
Because the image is always running, any addition, deletion, or update of a method in any class occurs at run time.
因为它总在运行,对任何类中方法的任何添加、删除或更新操作都发生在运行时。
The annotation means that the method will be run in a new transaction.
此标注意味着,该方法将在新事务中运行。
If a method is 10 lines long and 8 lines of the method were exercised in a test run, then the method has a line coverage of 80%.
如果一个方法有10行代码,其中的8行在测试中被执行,那么这个方法的行覆盖率是80%。
You'll find the first problem if you try to run this in a standard main method.
如果您试图在一个标准的main方法中运行这段代码,就会发现第一个问题。
One quick and easy method is to run /usr/sbin/authconfig and enter information in two screens.
一种快速而简单的方法是运行 /usr/sbin/authconfig,并在两个屏幕中输入信息。
Because this code is in the onModuleLoad() method, it will run automatically when the module loads.
由于这段代码位于onModuleLoad()方法中,因此它将在模块载入时自动运行。
Let's say that the complex_calculation method takes so long that you only want to run it when doing acceptance tests, not during unit test runs. One way to limit it appears in Listing 12.
如果complex_calculation方法运行时间较长,您只想在执行验收测试时运行它,而不想在单元测试期间运行它。
As mentioned in the comment, the standard run mechanism for custom code classes is the exec (ITestExecutionServices, String ) method.
正如上面注释中提到的那样,定制代码类的标准运行机制是exec (itestexecutionservices,String)方法。
You can scan your portlet service methods for any code that is executed in the same manner on every request and move it to the init method to reduce the run time cost for the service methods.
可以对Portlet服务方法进行扫描,以发现所有对每个请求执行相同操作的代码,将其移动到初始方法中,以降低该服务方法的运行时开销。
Listing 3 shows an example of a USER Not Authenticated or FAKED USER error that occurs if you run a program to access a guard point after logging in via a non-authorized login method.
清单3显示了一个USERNotAuthenticated或FAKED USER错误的例子,当您通过不支持的登录方法登录并运行访问保护点的程序之后,就会出现此类错误。
In the run method of this class, grab the Web page, chunk, from off of the queue in each thread, and then process this chunk with Beautiful Soup.
在这个类的run方法中,从队列中的各个线程获取web页面、文本块,然后使用BeautifulSoup处理这个文本块。
So far, that method has always been run, but it is legal to declare variables in any method.
迄今为止,方法一直都是run,不过在任何方法中声明变量均是合法的。
In line 13, the bind_ callback method from the class zk.Widget is overridden to run the update() method and set the first list item as the selected one after the listbox is bound to the DOM tree.
第 13行,来自类zk.Widget的 bind_callback方法被重写来运行update() 方法,在listbox被绑定到DOM树之后,设置列表第一项作为选中项。
This object must have a method called run(), which is executed by the runtime once the current frame in the call stack is specially marked as described above.
这个对象必须有一个名为run() 的方法,在调用堆栈中的当前帧特别做了如上所述的标记时,由运行时执行这个方法。
Running the same iterparse method in Listing 4 on the Open Directory data takes 122 seconds per run, or slightly more than five times longer than parsing the copyright data.
对OpenDirectory数据使用清单4中的iterparse方法,每次运行耗时122秒,约是解析版权数据所用时间的5倍。
For a simple timing test, I call the run method twice, once for each of the properties in the Listing 1 HolderBean class.
为了进行简单的计时测试,我调用run方法两次,对于清单1holderbean类中的每个属性调用一次。
I simply create an instance of GroovyShell, pass in the script name, and call the run method.
我只是创建了GroovyShell的实例,传递进脚本名称,然后调用run方法。
In the MessageSender's run method, it USES the ServletResponse to send data back to the client.
在MessageSender的run方法中,它使用ServletResponse将数据发送回客户机。
The only thing of importance to note in the run method is that self.getName() is a method that will identify the name of the thread.
在这个run方法中唯一要注意的是,self.getName() 是一个用于确定该线程名称的方法。
Now I am questioning whether a method that would have a ninety minute period of work followed by fifteen to thirty minutes of rest may be more productive in the long run.
现在我怀疑从长远看是否工作90分钟然后休息15到30分钟的方法更多产。
TestCaller is templatized with this class and, as in the case of TestRunner, you make a call to the run method for test execution.
用这个类对TestCaller 进行模板化,与使用TestRunner 时一样,通过调用run方法执行测试。
Inside the bean's bridge class, the logon (AuthBundle) method is invoked. For example, in OmniFindBridge.java, the following code is run.
在bean的桥接类内部,logon (AuthBundle)方法被调用。
With the new behavior method coded in Listing 11, it's time to run it — but doing so indicates a failure, as shown in Listing 13.
有了清单11中编写的新的行为方法之后,现在可以来运行它 —但是这时会产生一个错误,如清单 13 所示。
The capacities of a community that has mastered that method to survive, and to learn, and to remake the world according to its inclinations, are (in the long run) literally, mathematically, infinite.
掌握了那种技能的集体就有能力生存,学习,并由着自己的想法问鼎世界,而这种能力,(长期来看)在理论上而言,是无穷无尽的。
The logic of looking up an associated LDAP entry for a particular Sametime partner is performed in the run method, which we dissect piece by piece to help your understanding.
查找特定Sametime合作伙伴的相关LDAP条目的逻辑是用runWithEvent方法执行的,我们将详细分解该方法,以帮助您理解它。
The Command pattern says, "I don't care what the code to run is; just put in this method."
Command模式说,“我不关心运行的代码是什么,把它放在该方法中就行了。”
The first method of interest in the ScaleInt class is run .
在ScaleInt类中,我们感兴趣的第一个方法是run 。
应用推荐