use of org.graylog2.contentpacks.model.entities.references.Reference in project graylog2-server by Graylog2.
the class ReferenceConverterTest method convertStringValue.
@Test
public void convertStringValue() {
final Reference reference = createReference("string", "yolo");
assertThat(reference).isEqualTo(ValueReference.of("yolo"));
}
use of org.graylog2.contentpacks.model.entities.references.Reference in project graylog2-server by Graylog2.
the class ReferenceConverterTest method convertParameterValue.
@Test
public void convertParameterValue() {
final Reference reference = createReference("parameter", "wat");
assertThat(reference).isEqualTo(ValueReference.createParameter("wat"));
}
use of org.graylog2.contentpacks.model.entities.references.Reference in project graylog2-server by Graylog2.
the class ReferenceConverterTest method convertBooleanValue.
@Test
public void convertBooleanValue() {
final Reference reference = createReference("boolean", false);
assertThat(reference).isEqualTo(ValueReference.of(false));
}
use of org.graylog2.contentpacks.model.entities.references.Reference in project graylog2-server by Graylog2.
the class ReferenceConverterTest method convertIntegerValue.
@Test
public void convertIntegerValue() {
final Reference reference = createReference("integer", 0);
assertThat(reference).isEqualTo(ValueReference.of(0));
}
use of org.graylog2.contentpacks.model.entities.references.Reference in project graylog2-server by Graylog2.
the class ReferenceConverterTest method convertLongValue.
@Test
public void convertLongValue() {
final Reference reference = createReference("long", 1);
assertThat(reference).isEqualTo(ValueReference.of(1L));
}
Aggregations