aboutsummaryrefslogtreecommitdiffstats
path: root/common-app-api/src/test/java/org/openecomp/sdc/common/util/SerializationUtilsTest.java
blob: 95394afc914751fe9ee40cb63399677c98383643 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package org.openecomp.sdc.common.util;

import fj.data.Either;
import org.junit.Test;

public class SerializationUtilsTest {

	private SerializationUtils createTestSubject() {
		return new SerializationUtils();
	}

	@Test
	public void testSerialize() throws Exception {
		Object object = null;
		Either<byte[], Boolean> result;

		// default test
		result = SerializationUtils.serialize(object);
	}

	@Test
	public void testDeserialize() throws Exception {
		byte[] bytes = new byte[] { ' ' };
		Either<Object, Boolean> result;

		// default test
		result = SerializationUtils.deserialize(bytes);
	}

	@Test
	public void testSerializeExt() throws Exception {
		Object object = null;
		Either<byte[], Boolean> result;

		// default test
		result = SerializationUtils.serializeExt(object);
	}

}