Throughout the Harry Potter books, Divination class is regarded as something of a joke, particularly by Harry and Ron, but it seems barely anybody takes it seriously. In Prisoner of Azkaban, Professor McGonagall scoffs at the prediction of Harry's imminent death, claiming that Professor Trelawney predicts a student's death every year and has never been right before. Even Professor Dumbledore himself states that Professor Trelawney's total number of genuine predictions is three.
Harry and Ron make no secret of the fact that they don't have any interest (or even belief) in Divination, and Professor Trelawney tells them several times that they 'do not possess the inner eye' - at least until they discover that the best way to get good marks in the subject is by appealing to Trelawney's love of doom and gloom by pretending to predict their own deaths and suffering.
However, despite Harry and Ron not even believing in Divination, and Professor Trelawney's insistence that they do not possess 'the gift' required to gaze into the future there is actually a surprising amount of evidence that they are two of the most gifted mystics in the Wizarding World.
By the start of their fourth year at Hogwarts, Harry and Ron have all but given up on actually trying to do Divination properly. When given the homework of using planets to predict their futures, they end up throwing aside their planetary charts and decide to just make stuff up. Together, they 'make up' that Harry is in danger of suffering burns, drowning, losing a treasured possession, being stabbed in the back by someone he thought was a friend, and of course, dying.
All of these things happen.
Shortly after coming up with these 'fake' predictions, Harry is entered into the Triwizard Tournament.
The first task of the tournament? Facing a dragon. Danger of suffering burns? Check.
Second task, Harry is faced with surviving an hour underwater in the Black Lake. Danger of drowning? Check.
His objective in that task is to rescue the friends that were taken from him. Losing a treasured possession? Check.
By the end of the year, Harry discovers that Mad-Eye Moody, the man who has helped Harry throughout the year, is actually a Death Eater in disguise and was helping him only to guide him into Voldemort's hands. Stabbed in the back by someone he thought was a friend? Check.