public class DeviceFarmPluginTest { @Injectable AWSDeviceFarm apiMock; @Injectable DeviceFarmUploader uploaderMock; @Injectable Logger loggerMock;
@Nullable private Object getProvidedInjectableValue(@Nullable Injectable annotation) { if (annotation != null) { String value = annotation.value(); if (!value.isEmpty()) { Class<?> injectableClass = getClassType(); if (injectableClass == TypeVariable.class) { // Not supported, do nothing. } else { return Utilities.convertFromString(injectableClass, value); } } } return null; }
public class DeviceFarmPluginTest { @Injectable AWSDeviceFarm apiMock; @Injectable DeviceFarmUploader uploaderMock; @Injectable Logger loggerMock;
@RunWith(JMockit.class) public class ContextWriteSessionReferenceTest { @Injectable private ReferenceQueue<ContextWriteSession> referenceQueue; @Injectable private ContextWriteSession referent; @Injectable private ContextWriteSessionState state;
@RunWith(JMockit.class) public class GitlabMergeRequestWrapper_check_Test { @Injectable GitlabAPI api; @Injectable GitlabBuildTrigger trigger; @Injectable GitlabMergeRequest mergeRequest; @Injectable GitlabMergeRequestBuilder builder; @Injectable GitlabProject project; @Tested GitlabMergeRequestWrapper subject; DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-DD");
@RunWith(JMockit.class) public class ContextWriteSessionTest { @Injectable private WriteSession state; @Tested private ContextWriteSession sut; @Test public void testToString() throws Exception { assertThat( this.sut.toString(), not(equalTo(Utils.defaultToString(sut)))); } }
@RunWith(JMockit.class) public class ContextWriteSessionStateTest { @Injectable private WriteSession delegate; @Injectable private ContextWriteSessionStateListener listener;
DatasetType pbsoNonExistingAttr; DatasetType pbsoExistingAttr; @Injectable @NonStrict TaskType task; @Injectable @NonStrict org.lsc.Task taskExec;
@RunWith(JMockit.class) public class ManagedTransactionTest { @Injectable private TransactionManager mockedTransactionManager; @Injectable private TransactionIsolation transactionIsolation;
@Injectable ErrorHandler errorLogger; @Injectable NodeRepository nodes;
@Injectable private Name<?> name;
@Test public void instrumentationTest(@Injectable File testPackage, @Injectable File testedApp) throws IOException {
@Test public void instrumentationTest(@Injectable File testPackage, @Injectable File testedApp) throws IOException {
public void testCalculateModificationType() throws CloneNotSupportedException, LscServiceException { new NonStrictExpectations() { @Injectable @NonStrict ISyncOptions syncOptions; @Injectable @NonStrict ISyncOptions syncOptions;