Skip to Content

Serialization of IInfoObjects

Hi All,

Is there a way to serialize and deserialize IInfoObjects without having active BOE session?

What I previously found as solution was something like this:

// getting objects from BOE
IInfoObjects objects = this.findObjects(query, boContext);
FileOutputStream fileOut = new FileOutputStream("test.txt"); 
objectOutputStream = new ObjectOutputStream(fileOut); 
// serialization

ObjectInputStream objectInputStream =
    new ObjectInputStream(new FileInputStream("C:\\Users\\I517646\\Downloads\\tt.txt"));
IInfoObjects object = (IInfoObjects) objectInputStream.readObject();

But when deserializing these objects I also need BOE session.

I need this for integration tests, to be able to mock communication with BOE, so I need a solution where I don't need any communication with it after getting and serializing objects i.e. I want to serialize objects so I can reuse them in my tests.

Is there a way to do it?

Add a comment
10|10000 characters needed characters exceeded

Related questions

0 Answers

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.