There are several varieties of t-tests. The hypothesis for a t-test involves either one or two sample means.
One-Sample t-test
Independent samples t-test
Dependent Samples t-test
If the means of more than two groups are to be compared, then ANOVA should be used.
Why not just do multiple t-Tests between all pairs of groups? Because this inflates the Type 1 error.