Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Steanky committed Jul 25, 2023
1 parent 8f99dd0 commit 1358b0c
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
package com.github.steanky.element.core.util;

import com.github.steanky.element.core.annotation.Model;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.*;

class ElementSearcherTest {
@Test
void test() {
for (Class<?> ignored : ElementSearcher.allElementsInCurrentClassloader()) {
fail();
for (Class<?> cls : ElementSearcher.allElementsInCurrentClassloader()) {
if (!cls.isAnnotationPresent(Model.class)) {
fail("does not have model annotation");
}
}
}
}

0 comments on commit 1358b0c

Please sign in to comment.