@@ -98,13 +98,13 @@ After test-method. Thread id is: 9
```
Note that the `Id` value shown in the previous screenshot may not be the same in your console output. The Id value is assigned at runtime by the Java virtual machine (JVM) during execution.
@@ -167,9 +167,9 @@ public class DependentTestExamples
```
The preceding test class contains two test methods which print a message name onto the console when executed. Here, test method `testOne` depends on test method `testTwo`. This is configured by using the attribute ***dependsOnMethods*** while using the Test annotation.
Method dependency only works with other methods that belong to the same class or in one of the inherited classes but not across different classes. In case you need a test method that exists in a separate class; you can achieve this by assigning the said test method to a group and configuring the dependent test method to be dependent on that group.