org.mockito.internal.creation.bytebuddy.MockFeatures Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mockito-core Show documentation
Show all versions of mockito-core Show documentation
Mockito mock objects library core API and implementation
/*
* Copyright (c) 2016 Mockito contributors
* This program is made available under the terms of the MIT License.
*/
package org.mockito.internal.creation.bytebuddy;
import org.mockito.mock.SerializableMode;
import java.util.Collections;
import java.util.Set;
class MockFeatures {
final Class mockedType;
final Set> interfaces;
final SerializableMode serializableMode;
private MockFeatures(Class mockedType, Set> interfaces, SerializableMode serializableMode) {
this.mockedType = mockedType;
this.interfaces = Collections.unmodifiableSet(interfaces);
this.serializableMode = serializableMode;
}
public static MockFeatures withMockFeatures(Class mockedType, Set> interfaces, SerializableMode serializableMode) {
return new MockFeatures(mockedType, interfaces, serializableMode);
}
}