Example usage for org.springframework.security.core SpringSecurityCoreVersion SERIAL_VERSION_UID

List of usage examples for org.springframework.security.core SpringSecurityCoreVersion SERIAL_VERSION_UID

Introduction

In this page you can find the example usage for org.springframework.security.core SpringSecurityCoreVersion SERIAL_VERSION_UID.

Prototype

long SERIAL_VERSION_UID

To view the source code for org.springframework.security.core SpringSecurityCoreVersion SERIAL_VERSION_UID.

Click Source Link

Document

Global Serialization value for Spring Security classes.

Usage

From source file:org.springframework.security.core.SpringSecurityCoreVersionTests.java

@Test
public void serialVersionMajorAndMinorVersionMatchBuildVersion() throws Exception {
    String version = System.getProperty("springSecurityVersion");

    // Strip patch version
    String serialVersion = String.valueOf(SpringSecurityCoreVersion.SERIAL_VERSION_UID).substring(0, 2);

    assertThat(serialVersion.charAt(0)).isEqualTo(version.charAt(0));
    assertThat(serialVersion.charAt(1)).isEqualTo(version.charAt(2));

}