package com.ai.trackwalker.uavaccess.event;

import org.junit.jupiter.api.Test;

import static org.assertj.core.api.Assertions.assertThat;

class VendorStatusNormalizerTest {
    private final VendorStatusNormalizer normalizer = new VendorStatusNormalizer();

    @Test
    void mapsCommonFlightHubStatesWithoutTreatingUnknownAsSuccess() {
        assertThat(normalizer.normalize("accepted")).isEqualTo("DISPATCHED");
        assertThat(normalizer.normalize("executing")).isEqualTo("FLYING");
        assertThat(normalizer.normalize("paused")).isEqualTo("PAUSED");
        assertThat(normalizer.normalize("return_to_home")).isEqualTo("RETURNING");
        assertThat(normalizer.normalize("finished")).isEqualTo("COMPLETED");
        assertThat(normalizer.normalize("new_vendor_state")).isEqualTo("UNKNOWN");
    }
}
