@Test public void testIsLockedTrue() throws ComponentLookupException { Mockito.doReturn(this.lock).when(this.patientDocument).getXObject(Matchers.<EntityReference>any()); PatientRecordLockManager mockedLockManager = this.mocker.getComponentUnderTest(); Assert.assertTrue(mockedLockManager.isLocked(this.patient)); }
@Override public boolean isLocked(Patient patient) { return isDocumentLocked(patient.getXDocument()); }
DefaultPatientRecordLockManager implements org.phenotips.recordLocking.PatientRecordLockManager { @Override public boolean isLocked(Patient patient) { return isDocumentLocked(patient.getXDocument()); } }
DefaultPatientRecordLockManager implements org.phenotips.recordLocking.PatientRecordLockManager { @Override public boolean isLocked(Patient patient) { return isDocumentLocked(patient.getXDocument()); }  }
DefaultPatientRecordLockManager implements org.phenotips.recordLocking.PatientRecordLockManager { @Override public boolean isLocked(Patient patient) { return isDocumentLocked(patient.getXDocument()); }  @Override boolean lockPatientRecord(Patient patient); @Override boolean unlockPatientRecord(Patient patient); @Override boolean isLocked(Patient patient); }
DefaultPatientRecordLockManager implements org.phenotips.recordLocking.PatientRecordLockManager { @Override public boolean isLocked(Patient patient) { return isDocumentLocked(patient.getXDocument()); }  @Override boolean lockPatientRecord(Patient patient); @Override boolean unlockPatientRecord(Patient patient); @Override boolean isLocked(Patient patient);  }