![JAR search and dependency download from the Maven repository](/logo.png)
org.alfresco.mock.test.script.MockSearch Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alfresco-tests Show documentation
Show all versions of alfresco-tests Show documentation
This is a jar project based on mock classes to test fastly the alfresco applications
The newest version!
package org.alfresco.mock.test.script;
import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import org.alfresco.repo.jscript.Search;
import org.alfresco.service.ServiceRegistry;
import org.alfresco.service.cmr.repository.StoreRef;
public class MockSearch extends Search implements Externalizable {
@Override
public void writeExternal(ObjectOutput out) throws IOException {
out.writeObject(services);
out.writeChars(getExtensionName());
out.writeObject(storeRef);
}
@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
services = (ServiceRegistry) in.readObject();
setExtensionName(in.readLine());
storeRef = (StoreRef) in.readObject();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy