  We find necessary and sufficient conditions for almost sure finiteness of
integral functionals of spectrally positive L\'evy processes. Via Lamperti type
transforms, these results can be applied to obtain new integral tests on
extinction and explosion behaviors for a class of continuous-state nonlinear
branching processes.
