package de.trainingstagebuch.app.utils

import org.junit.Assert.assertFalse
import org.junit.Assert.assertTrue
import org.junit.Test

class SessionGuardUtilsTest {

    @Test
    fun `isAuthenticated true only for non blank token`() {
        assertTrue(SessionGuardUtils.isAuthenticated("token"))
        assertFalse(SessionGuardUtils.isAuthenticated(""))
        assertFalse(SessionGuardUtils.isAuthenticated(null))
    }
}
