We show that separately
harmonic functions and pluriharmonic functions in Cn can be characterized by
a finite number of mean-value conditions over boundaries of ellipsoids or
distinguished boundaries of polydisks. This is a generalization of the Delsarte-Lions
characterization of harmonic functions and of the Morera theorem for holomorphic
functions.