com.artemis.system.ProfiledSystemB Maven / Gradle / Ivy
package com.artemis.system;
import static org.junit.Assert.fail;
import com.artemis.BaseSystem;
import com.artemis.annotations.Profile;
import com.artemis.util.SimpleProfiler;
@Profile(enabled=true, using=SimpleProfiler.class)
public class ProfiledSystemB extends BaseSystem {
public int execution;
@Override
protected void processSystem() {
}
@Override
protected void begin() {
execution++;
}
@Override
protected void end() {
if (execution == 1)
return;
if (execution == 1)
fail();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy